In order to run the ads by my provider I have to insert the following code in my shtml pages:
However, I just set up a PHP-based forum and would like to show my ads there as well. The code above doesn't seem to work. Is there a PHP alternative to server side includes? Since it's a server-side language, I'm pretty sure there must be :)
Thanks in advance
I should've thought of that myself :) Thanks Kevin!
I'm using the exec() function to get a cgi script to run but it doesn't work
here's my code:
<?php exec("/cgi-bin/ads.cgi"); ?>
the path to the script is correct b/c i use:
<!--#exec cgi="/cgi-bin/ads.pl" --> in an shtml file in the same dir and it works fine.
i'm running php3
any help's appreciated!
Try virtual() instead of exec().
try adding the full URL to the script then it should work!
<?php exec("http://yourdomain.com/cgi-bin/ads.cgi"); ?>
<? include("http://yourdomain.com/cgi-bin/ads.cgi"); ?>
It should work!