Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command line output

Status
Not open for further replies.

ccherchi

Programmer
Jun 18, 2002
14
FR
Hi !

I am running a PHP script via command line (WIN32 command line), and the line "Content-type: text/html" is added at the beginning of my output each and every time that the script is executed.

Is there any solution to prevent this line from being automatically echoed ?

Thanks a lot.

Ced.
 
When you invoke the interpreter, pass PHP the "-q" command-line argument.

Instead of
[tt]php foo.php[/tt]
invoke
[tt]php -q foo.php[/tt]

That should do it. If not, just invoke "php -h" to see if there is another more appropriate argument to hand it. ______________________________________________________________________
My God! It's full of stars!
______________________________________________________________________
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top