|
Posted by iktorn on 04/12/07 20:48
Christoph Burschka napisał(a):
> I am getting started with using PHP as a local scripting language, unrelated to
> web pages (because basically I don't know a thing about Perl and it's far more
> convenient to use than shell scripts).
>
> So I learned that you can read the standard input by opening php://stdin. Now I
> want to process this input and write it to the output. However, anytime I start
> PHP from the command line, these lines are written:
>
> X-Powered-By: PHP/4.4.4
> Content-type: text/html
>
> Since eventually the scripts are supposed to process each other's output with
> pipelines, I would like only my data to be printed. Is there some way to switch
> off these http headers?
>
> --cb
You have to add -q flag eg.
php -q script.php
--
Wiktor Walc
http://phpfreelancer.net
Navigation:
[Reply to this message]
|