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" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó·s»D
:[EMAIL PROTECTED]
> 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 <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > 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.
> >
> >
> >
>
>



-- 
PHP Install Mailing List (http://www.php.net/)
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