Remotely access database with PHP

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
auriga
Forum Newbie
Posts: 2
Joined: Fri Oct 27, 2006 3:20 pm

Remotely access database with PHP

Post 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!
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post 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.....
Post Reply