Connect to MySQL Database Using PHP

From: Date: Sat, 28 Feb 2004 19:43:23 +0000
Subject: Connect to MySQL Database Using PHP
Groups: php.db 
Request: Send a blank email to php-db+get-33210@lists.php.net to get a copy of this message
I currently connect to my database (MySQL) through PHP with the following lines: $db = mysql_connect( 'host', 'userName', 'password'); mysql_select_db( "database_name", $db); The host, userName, and password are all hard coded into the PHP document. I would prefer not to do this. How can I connect to the database without having my sensitive information hard coded into the PHP? Thanks, Paul _________________________________________________________________ Find and compare great deals on Broadband access at the MSN High-Speed Marketplace. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/

« previous php.db (#33210) next »