myscranton
New member
I am creating a web application using PHP and MySQL. The webmaster must be able to install this application using an installer I built with PHP. They enter their MySQL database name, username, and password, and it creates tables.
That is nice, but how do I make it remember the MySQL db name, username, and password? It can't be done with cookies because it needs to automatically connect when any user uses it. It can be donw by writing and reading a text file, but then anyone can access the file and see the MySQL database username and password, which is unsecure.
Web forums do this. When someone reads the topics, it automatically connects to the database. So how is this done?
That is nice, but how do I make it remember the MySQL db name, username, and password? It can't be done with cookies because it needs to automatically connect when any user uses it. It can be donw by writing and reading a text file, but then anyone can access the file and see the MySQL database username and password, which is unsecure.
Web forums do this. When someone reads the topics, it automatically connects to the database. So how is this done?