Re: PHP path shown on browser
| From: | Fred | Date: | Sun, 20 Jan 2002 06:00:10 +0000 |
| Subject: | Re: PHP path shown on browser | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-5630@lists.php.net to get a copy of this message | ||
There is no need for the pound bang line in php, the script alias setting in
apache takes care of this. Furthermore, everything outside of the <??> is
rendered as pure html and that is why it is showing up in the browser.
Fred
Tony <tyknight@writeme.com> wrote in message
news:20020119174617.84910.qmail@pb1.pair.com...
> Hi all,
>
> I got a problem when i run php as a CGI binary.
> I wrote a php script as follow
>
> #!/usr/local/bin/php
> <?
> print "Hello World";
> ?>
>
> however, i got the following result when i called it from browser
>
> #!/usr/local/bin/php
> Hello World
>
> The path of PHP is always shown at the top of the browser.
>
> Does anyone know the solution?
>
> Thanks
> Tony.
>
>
>