I tried looking at old posts but I still can not get the ad network to work beyond my main or root directory. I have the network working on my main root directory. But I would like to add it to a sub directory. Do I need to add the same files from my root (ad_network.php, ad_networks_ads.txt & .htaccess) to the new sub directory? It seems from what I read that this was not needed. Advise? Thanks.
You shouldn't need to... you should just need to insert the PHP code that goes within the page itself.
I think the problem is that I am trying to use cgi script and I am having problems including your code. Still learning cgi. Here is my code if it helps: $apf_footer = qq[<div style="font-size:xx-small; text-align:center;"> test <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include_once ('ad_network.php'); echo $ad_network; ?>]; I can see test but the ad is not showing up. Thanks.
I am a relative newbie but after some research, I appears that you cannot run PHP within a Perl CGI script. Is this true?
True, Perl will not run PHP code. It's possible to rewrite the ad program to Perl, however, and it should not be very difficult, because the languages are similar.