Re: Re: Piping to the PHP binary
| From: | Dan Hardiker | Date: | Wed, 26 Feb 2003 14:11:06 +0000 |
| Subject: | Re: Re: Piping to the PHP binary | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-94589@lists.php.net to get a copy of this message | ||
Hi,
So there is no upgrade path for the cgi - it's lost this functionality?
(please confirm, as that breaks backward compatability for alot of my
scripts)
Surely the CGI should be able to handle piping too? [btw: if I build a CLI
version, I get the same problem... Im guessing that its caused by one of
the modules included]
Im just rebuilding my CLI binary, but here is a listing of the php CGI's
modules, incase the CGI binary is supposed to accept piping:
[14:06:36][brainzz@red]:~$ /usr/local/bin/php-4.3.2 -v
PHP 4.3.2-dev (cgi), Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
[14:06:45][brainzz@red]:~$ /usr/local/bin/php-4.3.2 -m
[PHP Modules]
bcmath
bz2
ctype
curl
dba
domxml
ftp
gd
gettext
hyperwave
iconv
imap
ldap
mbstring
mcal
mcrypt
mcve
mhash
ming
mysql
openssl
overload
pcre
pdf
pgsql
posix
pspell
session
snmp
sockets
standard
tokenizer
wddx
xml
xmlrpc
xslt
zlib
[Zend Modules]
[14:11:13][brainzz@red]:~$ /usr/local/bin/php-4.1.2 -v
4.1.2
[14:08:06][brainzz@red]:~$ /usr/local/bin/php-4.1.2 -m
Running PHP 4.1.2
Zend Engine v1.1.1, Copyright (c) 1998-2001 Zend Technologies
[PHP Modules]
xml
standard
sockets
session
posix
pdf
pcre
mysql
ming
imap
gd
zlib
[Zend Modules]
Not Implemented
[14:11:13][brainzz@red]:~$
> 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]$
>> [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]:~$
--
Dan Hardiker [dhardiker@staff.firstcreative.net]
ADAM Software & Systems Engineer
First Creative