Re: [PHP-INST] Re: PHP path shown on browser

2002-01-20 Thread Tony
I put the binary out side of the web tree becasue i want to enhance the security. "Steven Cayford" <[EMAIL PROTECTED]> ???:[EMAIL PROTECTED] > I don't know if this is exactly the problem but check out > http://www.php.net/manual/en/security.cgi-bin.php > > Under case 4 at the bottom it has a

Re: [PHP-INST] Re: PHP path shown on browser

2002-01-20 Thread Steven Cayford
I don't know if this is exactly the problem but check out http://www.php.net/manual/en/security.cgi-bin.php Under case 4 at the bottom it has a referce to a compile time option --enable-discard-path which sounds like what you're looking for. Or else put the binary in your cgi-bin directory? -

[PHP-INST] Re: PHP path shown on browser

2002-01-20 Thread Tony
FYI The version of my PHP is 4.1.1 "Tony" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó·s»D :[EMAIL PROTECTED] > I have fixed the problem. The problem came out because PHP cannot access > php.ini. "#!/usr/local/bin/php" will disappear once PHP can read the > doc_root in php.ini. > > However, i got another pro

[PHP-INST] Re: PHP path shown on browser

2002-01-20 Thread Tony
I have fixed the problem. The problem came out because PHP cannot access php.ini. "#!/usr/local/bin/php" will disappear once PHP can read the doc_root in php.ini. However, i got another problem. If i run a problem that involve many php files, many "#!/usr/local/bin/php" will appear on the browse

[PHP-INST] Re: PHP path shown on browser

2002-01-20 Thread Tony
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

[PHP-INST] Re: PHP path shown on browser

2002-01-19 Thread Fred
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