Re: mysql_connect

From: Date: Tue, 03 Oct 2000 12:04:26 +0000
Subject: Re: mysql_connect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18410@lists.php.net to get a copy of this message
I created a header file with uid, password and the database name and kept in a totally different directory and included in all my DB/PHP scripts. I think that is one way of hiding. Michael Conley wrote: > I am connecting to a MySQL database to retrieve data (or update data). In > the PHP page I have the connection information (host, username, password). > Unfortunately, this information is easily read by anyone who views the > source of my PHP page. How can I make the connection to the MySQL database > in some other page or otherwise not expose the connection information?

« previous php.general (#18410) next »