Page 1 of 1

Remotely access database with PHP

Posted: Fri Oct 27, 2006 3:39 pm
by auriga
Hi there!

I have several domains with a database on a central location. Each of the domains contains pages which will be filled with text got from the database.

Now I looked into remotely inclusion of php files to insert this data into the webpages of the domains. However, this seemed to be very slow.

Is there any way to access a remote database from a given webpage? I need to run certain queries on the database which will return data that's printed on the webpages...

Thanks!

Posted: Fri Oct 27, 2006 3:41 pm
by Burrito
you'll have to have a user account set up on the database for your remote location.

ie:

Code: Select all

grant all privileges on db.* to bob@66.219.177.122.....