View Full Version : Subdirectories
a389951l
Aug 31st 2004, 7:04 pm
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.
digitalpoint
Aug 31st 2004, 7:08 pm
You shouldn't need to... you should just need to insert the PHP code that goes within the page itself.
a389951l
Aug 31st 2004, 7:34 pm
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.
a389951l
Sep 1st 2004, 4:43 am
I am a relative newbie but after some research, I appears that you cannot run PHP within a Perl CGI script. Is this true?
kaptain
Sep 1st 2004, 7:55 am
i tried to have this run in a (apf) cgi script and could not get it to work.
tivnet
Sep 1st 2004, 9:08 am
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.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.