[PHP] finding out localhost :-P

2003-08-24 Thread Pag
	Heres the problem. I have one of my client's site hosted on a crappy 
server, and i have it running with php+mysql ok, the thing is i need to 
connect to that site's mysql's database from a different site to get data. 
The problem is that on the origin site (the crappy server), to connect to 
the database, i use localhost. How can i find out the real server to 
connect to from the other site? I tried using the whole domain, like 
www.crappyserver.com, but doesnt work. :-P
	Thanks.

	Pag

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] finding out localhost :-P

2003-08-24 Thread Ray Hunter
Make sure that the user that you are connecting with has permissions to
connect to mysql from that computer. You can check the user table in the
mysql database to see the user and their associated permissions.

I would suggest checking out mysql.com for additional information.

--
BigDog



On Sat, 2003-08-23 at 22:00, Pag wrote:
   Heres the problem. I have one of my client's site hosted on a crappy 
 server, and i have it running with php+mysql ok, the thing is i need to 
 connect to that site's mysql's database from a different site to get data. 
 The problem is that on the origin site (the crappy server), to connect to 
 the database, i use localhost. How can i find out the real server to 
 connect to from the other site? I tried using the whole domain, like 
 www.crappyserver.com, but doesnt work. :-P
   Thanks.
 
   Pag

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php