MySQL Forums
Forum List  »  PHP

req for a guide to connect a php page to remote mysql
Posted by: najme bayani
Date: December 09, 2012 12:36AM

hi
I have created a php page that connects to mysql db(in localhost) and works correctly.
now Iwant to buy a domain. there are some questions in my mind
I want the db to be in my pc and the php pages connect to it remotely. and also I want my pc to work always as a server.I have a server program running in my pc which changes db.
now my question is , when I buy the domain,what would I put instead of the localhost in php pages?
and the other question , in php pages , for connection deffinition I have put the db user and password. would it make any problem? is it safe or not?
and there is one more question
if I get a static Ip for my pc, is it possible to put the php pages in my system (pc)too. and the viewer use my static Ip in his browser?
sorry hor my bad english, and thank in advance

Options: ReplyQuote


Subject
Written By
Posted
req for a guide to connect a php page to remote mysql
December 09, 2012 12:36AM


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.