RE: [PHP-DB] hotlink MySQL

From: Date: Wed, 16 Oct 2002 00:02:07 +0000
Subject: RE: [PHP-DB] hotlink MySQL
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-22445@lists.php.net to get a copy of this message
> Is it possible to "hotlink" a MySQL database? > > my site location is different then my MySQL location. (or at least a > site). > Is it possible to use the database for both sites or should I set up the > database at both locations? > > The reason for asking is that one of the locations doesn't provide MySQL > DB's anymore (max number of DB's is limited) > > Pls let me know if this is possible, and if so, how. It's possible as long as your database allows remote access. You just give the IP address of the mysql server in your mysql_connect() function. $link = mysql_connect("192.168.0.1","user","password"); ---John Holmes...

« previous php.db (#22445) next »