jfontestad
Dec 15th 2004, 11:23 am
Ok, this is a little tricky here, but I think one of you guys can help me.
I have a cgi script that gets pages from a feed, so what I'm doing is using:
"system("php ../../../adnetwork.php");" In my CGI code to call the script I made named adnetwork.php. The code for adnetwork.php is:<div align="center"><font color="#FFFFFF" size="1"><?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('/ad_network.php');
echo $ad_network[0];
?> <?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('/ad_network.php');
echo $ad_network[1];
?></font></div>
So I can run multiple ads from the cgi script template, but all I'm getting in return is "256". If anyone thinks they can help me please PM me and I'll be glad to give you the URL of my website, so you can check it out yourself.
Thanks.
I have a cgi script that gets pages from a feed, so what I'm doing is using:
"system("php ../../../adnetwork.php");" In my CGI code to call the script I made named adnetwork.php. The code for adnetwork.php is:<div align="center"><font color="#FFFFFF" size="1"><?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('/ad_network.php');
echo $ad_network[0];
?> <?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('/ad_network.php');
echo $ad_network[1];
?></font></div>
So I can run multiple ads from the cgi script template, but all I'm getting in return is "256". If anyone thinks they can help me please PM me and I'll be glad to give you the URL of my website, so you can check it out yourself.
Thanks.