Re: Piping to the PHP binary

From: Date: Wed, 26 Feb 2003 13:43:39 +0000
Subject: Re: Piping to the PHP binary
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-94588@lists.php.net to get a copy of this message
use the cli not cgi: [moshe@dev1 moshe]$ php -v PHP 4.3.2-dev (cli) (built: Feb 24 2003 18:43:23) Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies [moshe@dev1 moshe]$ echo "<?php echo \"hi\"; ?>" | php hi[moshe@dev1 moshe]$ "Dan Hardiker" <dhardiker@staff.firstcreative.net> wrote in message news:1296.194.222.31.228.1046250305.squirrel@adam.firstcreative.net... > Hey all, > > echo "<?php echo \"hi\"; ?>" | /path/to/php > > That works on php v4.2.x but Ive got 3 machines on v4.3.x and none of them > seem to respond to the piping of the php config. > > ============================================================ > v4.2.x Response > ============================================================ > [13:56:14][dhardiker@office]:~$ echo "<?php echo 'hi'; ?>" | > /usr/local/bin/php > X-Powered-By: PHP/4.2.3 > Content-type: text/html > > hi[13:56:16][dhardiker@office]:~$ > ============================================================ > v4.3.x Response > ============================================================ > [13:58:56][dhardiker@office]:~$ echo "<?php echo 'hi'; ?>" | > /usr/local/bin/php > Status: 404 > Content-type: text/html > X-Powered-By: PHP/4.3.2-dev > > No input file specified. > [13:59:00][dhardiker@office]:~$ > ============================================================ > > Anyone else with the same results on a v4.3.x cgi-binary? > Is this modified behavoir limited to me, or expected? > > I tried asking php-general@ but no response. > > > -- > Dan Hardiker [dhardiker@staff.firstcreative.net] > ADAM Software & Systems Engineer > First Creative > >

« previous php.dev (#94588) next »