On Tue, 5 Mar 2002, Marcus Börger wrote: > From my point of view both are necessary to make php a widely > accepted shell script language. Also i would appreciate --help to > show up with version and supported switches.
php -h does that for you already. Derick > > marcus > > to make > > At 09:39 05.03.2002, Markus Fischer wrote: > > Is there a way to execute code from the command line AND process > > stdin/stdout without using an external file with php code? > > > > Currently the only way of feeding code to the script (to my > > knowledge) is: > > > > echo '<? // code ....?>' | php >output > > > > or > > > > <input stream> | php -f code.php >output > > > > But you can't do something like > > > > <input stream > | php -p '<? execute php code ?>' >output > > > > > > Maybe I missed the last option? > > > > - Markus > > > >-- > >Please always Cc to me when replying to me on the lists. > >GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc > > > >-- > >PHP Development Mailing List <http://www.php.net/> > >To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php