RE: [PHP-DB] [PHP] PHP and MYSQL Security`

From: Date: Mon, 28 Jan 2002 01:14:11 +0000
Subject: RE: [PHP-DB] [PHP] PHP and MYSQL Security`
References: 1  Groups: php.db php.general 
Request: Send a blank email to php-db+get-16230@lists.php.net to get a copy of this message
The actual content of the .php files won't be seen from the net since it is server side scripting language.. But if you are still concerned you can put database connection info into another file (preferably .php file) and place it somewhere outside your web directory and access it thru require() or include() functions inside your actual web page. But if your concern is for local users' access to those file , just set your file/directory permissions accordingly. Gurhan -----Original Message----- From: Duky Yuen [mailto:duky@cable.a2000.nl] Sent: Sunday, January 27, 2002 7:38 PM To: php-general@lists.php.net; php-db@lists.php.net Subject: [PHP-DB] [PHP] PHP and MYSQL Security` How can I secure my username and password? In 1 of my files, it contains the following: $conn = mysql_connect( "12.34.56.78", "username", "password"); mysql_select_db("database",$conn); What should I do, so people can't get this information? Duky -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#16230) next »