CoffeeQuick
Programmer
I am new to PHP and mySql.
I have writen a script (using the db.php PEAR extension) to access a database, but the username and password to connect to the database are imbedded in the script for anyone to find.
Does anyone know how to securely hide this information.
I have tried searching via Google and have not come up with any useable answers to this problem.
One I found suggested putting the username etc, in the php configuration file on the server and getting them as system variables (php_value mysql.default_user etc..), but I don't appear to have access to this file on my hosts server.
Thanks.
I have writen a script (using the db.php PEAR extension) to access a database, but the username and password to connect to the database are imbedded in the script for anyone to find.
Does anyone know how to securely hide this information.
I have tried searching via Google and have not come up with any useable answers to this problem.
One I found suggested putting the username etc, in the php configuration file on the server and getting them as system variables (php_value mysql.default_user etc..), but I don't appear to have access to this file on my hosts server.
Thanks.