try exec() or back-ticks `` see how that goes Martin
-----Original Message----- From: Boris Wong [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: [PHP] php and cgi hi, i was wondering if anyone knows how i can execute a cgi script (with -rwxrwxrwx mode) written in perl from within php? i tried <?php include ('mycgi.cgi'); ?> but the content of the cgi file is displayed instead of executing it. <?php system ('mycgi.cgi'); ?> didn't help as well. i also tried calling the url where this cgi is located (which is in the same file structure my php is located), like this: <?php include ('http://www.myurl.org/mycgi.cgi'); ?> but the browse keeps on loading and nothing shows up. thanks in advance. /bw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php