hi all...

when i execute php code on the comand line even if i don't have any output from the code i do get:

Content-type: text/html
X-Powered-By: PHP/4.3.11

in the terminal...

i've done this before on different machines with newer php and i have not seen these headers there... .
and all of them have the text/html set as default content-type...
is it something i can turn off in php.ini?!..

thanks...

    you could also add the -q flag to your php command like this:

    php -q myfile.php
    

      You are running the CGI binary instead of the CLI one. Although they're both called "php", they behave somewhat differently. Use the CLI one. Read the section of the manual dedicated to this.

      Mark

        Write a Reply...