Whenever I set up the ad code, I get the error: You must set the ad_network_ads_135.txt file to be writable (check file name as well). on the page. Yes, I did set the file ad_networks_ads_135.txt to be writeable (chmod 777). Yes, all the file names are correct. Yes, they're all in the same directory. Am I missing something?
Another thing to check: Look at your .txt destination path in the php file and make sure that it points to the right path (where it is located).
Yep, it points to it. I'm assuming this line of php stuff is it: if (!isset($_SERVER)) $_SERVER = $HTTP_SERVER_VARS; $ad_file = 'ad_network_ads_135.txt'; for ($i = 0; $i <= 11; $i++) { $path = substr ('../../../../../../../../../../', 0, $i * 3); if (file_exists ($path . $ad_file)) { $ad_file = $path . $ad_file; break; } So... that would mean they would need to be in the same directory right? And they are.. I'm about ready to give up on the concept.
I am not an expert with this by any means, but I saw that no one else jumped in. Only other thing I would think to try is to change: $ad_file = 'ad_network_ads_135.txt'; to $ad_file = 'http://yourdomain/ad_network_ads_135.txt';
is this you root directory. from what i can see you have 10 folder/directory before to it actual file. root directory normally located here: public_html look at mine: <!-- start_co_op_network --> <?php ini_set ("include_path", ini_get ("include_path") . ':../../:../'); include ('ad_network_140.php'); echo $ad_network; ?> <!-- end_co_op_network-->
i have a same problem then i reduce the number of path search looping like this for ($i = 0; $i <= 3; $i++) { //$path = substr ('../../../../../../../../../../', 0, $i * 3); $path = substr ('../../', 0, $i * 3); if (file_exists ($path . $ad_file)) { $ad_file = $path . $ad_file; break; } } and it's work. i don't know why 11 looping make it not work.