My ads work well in the root directory and some sub directories but don't work in some others? The code is the same in two directories but only work ok in one. Any answer?
Well.. It sure can help if you can see the site. So here it is. The site: www.cartoonspot.net Everything is ok in the site's root and in this direcroty: http://www.cartoonspot.net/cartoons-directory/ but in other directories like this one: It doesn't work? http://www.cartoonspot.net/looney-tunes/looney-tunes-picture.php and yes, I did "copy and paste" the same code from the (cartoons-directory/) to this direcrory (looney-tunes/). What can be the problem?
Try using the full file path in your include statement and also when referencing your .txt file in the ad network PHP file.
It still doesn't work. I have tried : <-------- if (!isset($_SERVER)) $_SERVER = $HTTP_SERVER_VARS; $ad_file = 'http://www.cartoonspot.net/ad_network_ads_151.txt'; for ($i = 0; $i <= 11; $i++) { --------> I wonder if the domain and sub domain could be the problem? The "looney-tunes" directory is a sub domain too. (www.looney-tunes.cartoonspot.net) May be the Digital Point ads system see it as an other site. Is it possible? thanks. It really looks to be what I tought. According to DP: """" Create a file named ad_network_153.php in the main directory of your site (if your registered site URL is a sub-directory of the domain, it should go in that sub-directory): """" well... If I have registred a Domain (www.mydomain.com) but one of my directory is a sub-domain like: www.lalala.mydomain.com Do I have to create an other account for this sub-domain? (www.lalala.mydomain.com) At first sight, I think so.
The full FILE path (not URL) in the include statement. Yes, you would need a different account per subdomain.