MySQL Forums
Forum List  »  PHP

PHP Connect to Remote MySQL Server - BUT not Embed Username and Password !!!
Posted by: Arthur Chan
Date: May 16, 2016 02:21PM

Hi.

I have the general idea how to use PHP to connect to a remote MySQL server.

The only problem I have is I am still putting the username and password in the connection.

Is there a way I can put the configuration and access file containing the db_name, db_user and db_password on the MySQL-server, access it via my HTTPConnect and grab the username and password from the PHP file on the server?

If so, where would I put this file, htdocs home t index.html?

Thanks.

Options: ReplyQuote


Subject
Written By
Posted
PHP Connect to Remote MySQL Server - BUT not Embed Username and Password !!!
May 16, 2016 02:21PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.