I have decided to use DP COOP. but the only problem I am facing is, I am not a php guy so I am not even able to setup ad codes on one of my PHP site. the site is using templates. the structure is - all the main pages are under WWW dir. templates are under www/templates/ dir. to use the ads sitewide I placed ad codes on main_temp.php file, which is the main template used by all the pages.(its under www/templates/ folder) I placed ad_network_257.php and ad_network_ads_257.txt files under the www folder. now when I run the index.php noting is happening. I changed - <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network_257.php'); echo $ad_network; ?> Code (markup): to <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('../ad_network_257.php'); echo $ad_network; ?> Code (markup): but its not working either, what else should I do? Please guide. thanks.
the URL is http://www.superhitjokes.com yeah it does allow PHP codes insertion. If I put all the files (i.e.- ad_network_257.php and ad_network_ads.txt) in the templates directory, the code(Inserted in the template file) say the ad_network_ads.txt should be writable by the webserver, although i have changed the permission and set it be writable. but its not happening.
If it says it's not writeable, then it's either not writeable, or it can't find the file. Try using the full file path for the .txt file...
Err thats what I am asking, how to do that, Sorry it sounds very dumb but I am not a PHP guy I tried it with " ../ " but its not working.
It's going to depend on your server and how it structures sites in it's file system. For example, it could be something like: /home/sites/www.yoursite.com/web Or it could be something else...
Actually if you echo out the $_SERVER['SCRIPT_FILENAME'] variable, you should be able to see the full file path for it, which will be helpful.