RE: [PHP] php and cgi

From: Date: Wed, 03 Apr 2002 20:32:24 +0000
Subject: RE: [PHP] php and cgi
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91397@lists.php.net to get a copy of this message
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: tcarney@selterra.com [mailto:tcarney@selterra.com] Sent: Tuesday, April 02, 2002 10:46 PM To: Boris Wong Cc: php-general@lists.php.net 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. tcarney@selterra.com

« previous php.general (#91397) next »