#! Being Echoed
| From: | Ken Rosha | Date: | Tue, 02 Oct 2001 16:34:04 +0000 |
| Subject: | #! Being Echoed | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-4472@lists.php.net to get a copy of this message | ||
Hello,
I have installed Apache 1.3.20 and PHP 4.0.6 on a Win2k box. I have
configured Apache to run PHP as a module, which all seems to work fine.
When I run a PHP script from within the docroot area (i.e.
d:\htdocs\phpExamples\info.php), the script displays properly. The script
example is:
<?php
phpinfo();
?>
However, if I define a script alias such as ScriptAlias /php/ "d:/php/" in
Apache, and try to execute the same PHP script from there, i.e.
d:\php\info.php, the script executes but the #! is also echoed back to the
browser. The script example is:
#!d:/php/php
<?php
phpinfo();
?>
If I do not have the #! line in this second example, I get a 500 Internal
Server Error, and the Apache error.log shows "couldn't spawn child process:
d:/php/info.php".
Is this a bug in the PHP module?
TIA
Ken