ID: 8506
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: *Web Server problem
Description: CGI PHP doesn't erase the #!/path/to/php

    The only lines concerning PHP in httpd.conf are:

AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps

    And, since I use .php as file extension, this lines are irrelevant.

Previous Comments:

[2001-03-06 08:01:40] [EMAIL PROTECTED]
What is your apache configuration for PHP scripts?


[2001-01-02 15:41:55] [EMAIL PROTECTED]
   And if you still have any doubts, thinking that Apache has reconized the file 
extension and is not using the cgi version, try

   The output is the same. And if you read the php output on both pages you'll see 
that PHP is run as CGI (Server API CGI).


[2001-01-02 15:29:53] [EMAIL PROTECTED]
   "PHP does not require the first line that you are including unlike perl due to the 
way its set up in apache."

   You're wrong. PHP is not set up at all in Apache. Look what happens if I delete the 
first line:

<TITLE>500 Internal Server Error</TITLE>
<H1>Internal Server Error</H1>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.<P>
Please contact the server administrator,
 [EMAIL PROTECTED] and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.<P>
More information about this error may be available
in the server error log.<P>
<ADDRESS>Apache/1.3.12 Server at Port 80</ADDRESS>

Server error log:
[Mon Jan  1 16:00:34 2001] [error] [client] Premature end of script 


[2001-01-02 14:49:34] [EMAIL PROTECTED]
PHP does not require the first line that you are including unlike perl due to the way 
its set up in apache.


[2000-12-31 21:13:47] [EMAIL PROTECTED]
The script is:

--- Cut ---
<% phpinfo () %>
--- Cut ---

You can see the result at

The first line of the page is #!/home/vladimir/php4/bin/php, and that's very annoying. 
I'm using PHP to generate XML output, and the XML parser that will read the output 
doesn't like the first line, and I can't blame it.


The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to