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:[EMAIL PROTECTED]:~$ /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:[EMAIL PROTECTED]:~$ /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:[EMAIL PROTECTED]:~$ /usr/local/bin/php-4.1.2 -v
4.1.2
[14:08:[EMAIL PROTECTED]:~$ /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:[EMAIL PROTECTED]:~$


> use the cli not cgi:
>
> [EMAIL PROTECTED] 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
> [EMAIL PROTECTED] moshe]$ echo "<?php echo \"hi\"; ?>" | php
> [EMAIL PROTECTED] moshe]$
>> [13:58:[EMAIL PROTECTED]:~$ 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:[EMAIL PROTECTED]:~$


-- 
Dan Hardiker [EMAIL PROTECTED]
ADAM Software & Systems Engineer
First Creative



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to