Hi, I believe I have set everything up correctly as it works fine in my test enviroment. But when I upload it to my actual server no ads are being displayed. The ad_network_ads.txt file is not being populated. The file does have a chmod 777. My actual php code is: ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network.php'); echo $ad_network[0]; echo "<br>".$ad_network[1]; echo "<br>".$ad_network[2]; echo "<br>".$ad_network[3]; echo "<br>".$ad_network[4]; Any advice would be greatly appreciated.
You need to have a include ('ad_network.php'); for every instance of echo "<br>".$ad_network[x]; There may be other issues, but you at least need this one sorted out.
My view source only displays the page breaks "<br><br><br><br><br>" Are you sure I need to include ad_network.php 5 times? Because like I said it works fine it my test enviroment. And even if that was the problem at least one add should show up. Also the ad_network_ads.txt file should at the very least be populated, but this is not happening.
You don't need to include it 5 times, only once. Does your PHP setup (outside of the ad network) turn off error reporting? Maybe it can't find the file or something else but the actual error is being suppressed.
Actually, you are right, I never thought of that. The error reporting is turned off on the server (I do not have access to change it). Any idea how to test that? Although I can't see why it wouldn't work as I uploaded it the exact same as it was on my test enviroment. I am guessing it has to be something with write access on the server, even though the file is chmod 777. I think I'll make a quick simple script to try writing to that file and see if it works. *edit* Well the test script I made was able to write to the file fine. I am really confused now .... Any more suggestions?
Ok, I did that but still no errors showing up. *edit* Also one other thing to note is if I upload the ad_network_ads.txt generated in my test enviroment everything works fine displaying those cached ads.