On Sun, 11 Feb 2001, Halfdan Mouritzen wrote:
>
>
> Vince Vielhaber wrote:
> > You can build PHP for command line use, but even from the command line
> > the first thing it does is prints some html headers. I never found a
> > way to shut that off, but I also didn't try that hard. I guess you can
> > grep them out but the end result is why bother?
> >
> The first line of the file reads
> # !/usr/local/bin/php -q
>
> This ofcourse tells the server where to find the PHP
> interpreter and the '-q' tells it to shut up,
> that it shouldn't output anything to stdout.
>
> Anyway a PHP doesn't output anything if you don't use any
> output functions (echo, print, header functions)
Interesting. And useful. Learn something new, etc. I just tried
this out and not only does it work as described, I think I just found
a replacement for straight perl (I'm much more comfortable with PHP
than perl).
I also just tried some simple stdin stuff with it and it does what it
should. So I'd have to ask what exactly you're doing, what exactly
is happening and what were you expecting to happen?
Vince.
--
==========================================================================
Vince Vielhaber -- KA8CSH email: [EMAIL PROTECTED] http://www.pop4.net
128K ISDN from $22.00/mo - 56K Dialup from $16.00/mo at Pop4 Networking
Online Campground Directory http://www.camping-usa.com
Online Giftshop Superstore http://www.cloudninegifts.com
==========================================================================