open php as stream

From: Date: Tue, 22 Jan 2002 01:41:16 +0000
Subject: open php as stream
Groups: php.general 
Request: Send a blank email to php-general+get-81467@lists.php.net to get a copy of this message
This is a tough one to explain but here goes. Running php as cgi on apache. I am converting from FirstBase (cgi macro processor) to php and I need to process a php script from Firstbase running as a cgi program. The problem is php ignores the command line (-f and script parameters) passed in popen and tries to process my firstbase script instead. fb is very close to php so here is my FirstBase script: { chdir( path_dir ); fh = popen( "/usr/local/bin/php -f wzdownload.php", "r"); if (fh < 0) { print( "failed to open stream" ); exit(); } while (fgets(buf, 4096, fh) > 0) { print( buf ); print( "<br>" ); } pclose( fh ) } Any ideas as to how to work around this? Thanks in advance Ken Gregg Enhanced Data Systems, Inc. http://www.rwre.com for the best in Southwest Oregon Real Estate

« previous php.general (#81467) next »