True. But I think you missed the point of the original question--there's no
"non-web directory"...
- E
>
>To take it to another level, place the PHP file you
>are including in a non-web directory. That way, just
>in case the web server mucks up, there's no chance of
>PHP outputting the contents
Well, I'm not sure if this is what you're looking for but... if you name the
file with a .php extension (instead of .txt or .inc) then your password is
"protected".
For example, you have a password declared like this:
$my_db_username = 'MyUserName';
$my_db_password = 'MyPassWord';
And it'
How can I protect my username and password for my connection
with a mysql server. I can't place a file outside the root by the
provider I use.
Thankx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
3 matches
Mail list logo