I in the process of making a site that will have1000sub directories and I want to put ads on them all the same ads but change them daily I tried (?include("site.c/1/11.php");? And get an error but when I put that in take the site just leave the 11.php and load that file in the directories it works. So is there another way as I do not want to have to edit each directory daily. Thanks
I am making a website.it will have about 1000 sub folders example www.site.com/hi www.site.com/hey i want o put ads on them all but i do not want to edit them all 1 by 1 so i thought i can use something like <?php include("site.com/ad/11.php"); ?> but when i link it to my main site it does not show up get error.but if i do <?php include("ad/11.php"); ?> it works fine but i would need to edit all subfolders 1 by 1 if i did it that way.I want a code like that so i can edit one file on my main site and it will show up on them all.Is that a bit better i hope so..thanks
try something like this: <php include "../11.php"; ?> PHP: where you put that code inside the folder, and have 11.php in the folder above (home dir)