Re: Does DB only work with a localhost database?
| From: | Stefan Neufeind | Date: | Thu, 03 Jun 2004 13:36:45 +0000 |
| Subject: | Re: Does DB only work with a localhost database? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12858@lists.php.net to get a copy of this message | ||
On Thu, 3 Jun 2004 at 15:21:23, Pete wrote:
> can DB also be used when the database is on a different host ?
Simply give it the name of the server in the DSN you use to connect to the
database. Have a look at the examples - and where it says "localhost" simply
replace this with your database-server.
Stefan