RE: [PHP-DB] Protecting database password

2001-07-18 Thread Walter, Marcel
On Unix it is possible to make an include file with all the settings like $user, $passwd and so on and store it somewhere in the filesystem (not under your htdocs-path) So no one can access this file via web You can include this file with its variables with the include() - statement ...

Re: [PHP-DB] Protecting database password

2001-07-18 Thread Dobromir Velev
Hi, I suggest you use a .php file to declare your database variables and include it everywhere you need it. Even if someone guesses the name of this file when he tries to open it, nothing will be outputed to the screen. an example file is ? $dbname=name; $dbuser=user; $dbpass=pass; ? Than