yazah Posted February 12, 2011 Share Posted February 12, 2011 I need a php code that I can put on all my subdirectories example site.com/hi and site.com/hey. But I do not want to edit them all one by one cause I will have like 1000 subdirectories I want it for ads and I need to be able to edit one file and show up on them all. I looked on google with no luck and was told to come here. Thankd Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted February 12, 2011 Share Posted February 12, 2011 Ummmm, yeah. If you could just go ahead and explain a little better, that would be great, OK? Quote Link to comment Share on other sites More sharing options...
yazah Posted February 13, 2011 Author Share Posted February 13, 2011 Ok ummmm. I Am making a website that will have about 1000 sub folders example site.com/1 now I want to run ads on them all on the right side and I tried (?php include ("site.com/ads.php");?) and put that in the spots in a few sub folders and got errors but when I took the site.com out and uploaded the ads.php file to the individual sub folders it worked but that way when I change ads I would need to do all 1000 individually I need a code that will edit them all at once is this better. Thanks Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted February 13, 2011 Share Posted February 13, 2011 Are you getting 'cannot include file' errors? The more information you provide, the better the chances are that you'll get any help. Quote Link to comment Share on other sites More sharing options...
lastkarrde Posted February 13, 2011 Share Posted February 13, 2011 Sounds like your not wanting help with something specific, rather you just want someone to write a script for you? Quote Link to comment Share on other sites More sharing options...
yazah Posted February 13, 2011 Author Share Posted February 13, 2011 Getting file does not exist errors I am in another form and I was told can't be done. Quote Link to comment Share on other sites More sharing options...
yazah Posted February 13, 2011 Author Share Posted February 13, 2011 No I don't want someone to write it just to tell me what I'm doing wrong. That's all Quote Link to comment Share on other sites More sharing options...
stijnvb Posted February 13, 2011 Share Posted February 13, 2011 if your files are all in a subfolder, let's say: site.com/folder1/index.php site.com/folder2/index.php site.com/folder2/index.php site.com/folder2/index.php you could just create a folder, say templates. In that folder, you can store ads, but also just your whole page layout to be used on all pages. You could then include those pages in the template folder by include ("../templates/foo.inc.php"); IF that is what you want to do ... Quote Link to comment Share on other sites More sharing options...
yazah Posted February 13, 2011 Author Share Posted February 13, 2011 I wrote that and did not work that showed up I put it there and exactly that showed up Quote Link to comment Share on other sites More sharing options...
yazah Posted February 13, 2011 Author Share Posted February 13, 2011 here is the demo til the site is done then i will load it to the real ure http://1234sites.info/34/results.php?cx=partner-pub-7327945792706541%3Afgqbvq-lsc5&cof=FORID%3A10&ie=ISO-8859-1&q=pogo&sa=Search i want to make a file in the main site 1234sites.info/ads and make the ads show up in all the sun folders like this one is 1234sites.info/34 thanks Quote Link to comment Share on other sites More sharing options...
stijnvb Posted February 13, 2011 Share Posted February 13, 2011 What I understand from your numerous posts can be done with what I've told you ... There is no point of asking me for help through private message ... As someone stated, you just want someone to write the script for you ... while there's no script to be written here ... just 1 line ... Good luck finding someone ... Quote Link to comment Share on other sites More sharing options...
yazah Posted February 13, 2011 Author Share Posted February 13, 2011 Did you click the link I put here it don't work. Maybe it is because I am trying to use it in a sunflower. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.