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?
> 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
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php