zohab Posted April 19, 2007 Share Posted April 19, 2007 Hi I had used phpmyadmin(mysql) many times in my projects. I connect to it as server(ip address) username password database name. IT always get connect,but now instead of server ip address i have "localhost" It is not getting connect through php code. What need to do. Please help. Best regards zohab Quote Link to comment Share on other sites More sharing options...
MadTechie Posted April 19, 2007 Share Posted April 19, 2007 Hummm i always use localhost, whats the error your getting? can you supply some code ? Quote Link to comment Share on other sites More sharing options...
zohab Posted April 23, 2007 Author Share Posted April 23, 2007 Thanks for your reply It is working now. I haven't done anything,it is working fine. I would like to know,how can we find out IP address of server(database). if we upload phpinfo(); on server , can we get database server ip address. OR any other way to get IP addrees of server. thanks and best regards zohab Quote Link to comment Share on other sites More sharing options...
Guest prozente Posted April 23, 2007 Share Posted April 23, 2007 this will get you the address echo $_SERVER['SERVER_ADDR']; if you're on linux you can also do host -t a example.com you can also go to http://www.dnsstuff.com/ and look for "DNS Lookup" enter the domain name, select A as the record type then click lookup Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.