Re: #!/usr/bin/php in output?
| From: | Mike Eheler | Date: | Tue, 05 Mar 2002 21:59:10 +0000 |
| Subject: | Re: #!/usr/bin/php in output? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-87363@lists.php.net to get a copy of this message | ||
-q supresses the output of headers:
Content-type: text/html
X-Powered-By: PHP/4.1.1
But in any event I tried it.. now the page gives me an error:
No input file specified.
The first few lines look like:
#!/usr/bin/php -q
Content-type: text/html
<pre>
Mike
Aaron Gould wrote:
Try adding a -p argument to the end of that line:#!/usr/bin/php -q-- Aaron Gould agould@partscanada.com Web Developer ----- Original Message ----- From: "Mike Eheler" <meheler@idearesource.com> To: <php-general@lists.php.net> Sent: Tuesday, March 05, 2002 3:43 PM Subject: [PHP] #!/usr/bin/php in output?Having a bit of a weird problem with using PHP as CGI. The problem is this.. the output is returning the #!/usr/bin/php line from the file. Example: /cgi-bin/test: #!/usr/bin/php <? echo "Hello World!\n"; ?> Then in a web browser: http://www.example.com/cgi-bin/test: #!/usr/bin/php Hello World! Has anyone else experienced this problem or know what's causing it? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php