thanks all for the response. i tried various methods but still have no luck.
using virtual: <?php $curDir = dirname( getenv( "SCRIPT_FILENAME" ) ); virtual( "myscript.cgi" ); chdir( $curDir ); ?> i got the following warning: Warning: Unable to include 'myscript.cgi' - request execution failed in /[dir-path]/index.php on line 71 any more clues? thanks! /bw -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 10:46 PM To: Boris Wong Cc: [EMAIL PROTECTED] Subject: Re: [PHP] php and cgi On Tue, 2 Apr 2002, Boris Wong wrote: > 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'); > ?> This worked for me: <?php virtual(/cgi-bin/progname); ?> ALthough I did use absolute paths in the cgi script. Regards, Terry. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php