Re: PHP path shown on browser
| From: | Tony | Date: | Sun, 20 Jan 2002 11:37:49 +0000 |
| Subject: | Re: PHP path shown on browser | ||
| References: | 1 2 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-5631@lists.php.net to get a copy of this message | ||
Thanks Fred,
Since i do not install the php as Apache modules, I have to add the
path of the php binary at the top of the script. It is just like perl.
"Fred" <fred.nospam.please@querymagic.com> ¼¶¼g©ó¶l¥ó·s»D
:20020120055935.48756.qmail@pb1.pair.com...
> 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.
> >
> >
> >
>
>