RE: [PHP] #!/usr/bin/php in output?

2002-03-06 Thread Kearns, Terry
PROTECTED] Subject: Re: [PHP] #!/usr/bin/php in output? It needs to run as a CGI script. The reason is maybe it needs to be a dual-purpose script that can be run from the console, or from the web, or maybe it needs to run as a user other than the web server. Whatever my actual reason

Re: [PHP] #!/usr/bin/php in output?

2002-03-05 Thread Aaron Gould
Try adding a -p argument to the end of that line: #!/usr/bin/php -q -- Aaron Gould [EMAIL PROTECTED] Web Developer - Original Message - From: Mike Eheler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 3:43 PM Subject: [PHP] #!/usr/bin/php in output?

Re: [PHP] #!/usr/bin/php in output?

2002-03-05 Thread Aaron Gould
My apologies, that should have read -q and not -p. Sorry! :) -- Aaron Gould [EMAIL PROTECTED] Web Developer - Original Message - From: Mike Eheler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 3:43 PM Subject: [PHP] #!/usr/bin/php in output? Having a bit

Re: [PHP] #!/usr/bin/php in output?

2002-03-05 Thread Mike Eheler
-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

Re: [PHP] #!/usr/bin/php in output?

2002-03-05 Thread Anas Mughal
Why do you have #!/usr/bin/php in your script?! You are running it thru the webserver. You shouldn't need that line. --- Mike Eheler [EMAIL PROTECTED] wrote: 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

Re: [PHP] #!/usr/bin/php in output?

2002-03-05 Thread Mike Eheler
It needs to run as a CGI script. The reason is maybe it needs to be a dual-purpose script that can be run from the console, or from the web, or maybe it needs to run as a user other than the web server. Whatever my actual reason is doesn't matter, but trust me, the script must be run as a