I wish to exec a cgi script through php.
I have an index.php3 which does a require("banner.php3");
In this banner.php3 i want it to execute a script which is in "/home/tip/public_html/ad/ad.cgi".
I want to run it from my main domain (which is /home/tip/public_html/) so it works if i do virtual("ad/ad.cgi"); the problem arises when i want to do it from a subdomain (which is /home/tip/public_html/sub). I tried using the full path in the virtual function as above, and i tried using "http://www.mydomain.com/ad/ad.cgi" but neither works.
Basically, how can i execute a cgi script from another webserver or using the full path?
Jamie
http://www.tipnwin.com