Reply
Connecting to a database
Old 01-20-2005, 03:06 PM Connecting to a database
fambi's Avatar
Ultra Talker

Posts: 339
Hi everyone.

This might sound like a stupid question to those of you who know, but anyhow...

Is is possible to connect to a database on a foreign site?

At present, from what i see, all the references in the connection are to "localhost" e.g. mysql_connect("localhost", "xxxxx", "yyyyy") so, if it is possible, what would i replace localhost with?

Looking forward to your answers.
__________________
Sending sms from a website or application is easy!
Read this great tutorial that uses our bulk sms gateway.
fambi is offline
Reply With Quote
View Public Profile Visit fambi's homepage!
 
When You Register, These Ads Go Away!
Old 01-20-2005, 05:22 PM
Republikin's Avatar
Super Moderator

Posts: 3,191
It is very possible however there are some implications. If the foreign host does not allow outside connections to mysql you can not. If the foriegn host goes down, so does your data.

Other than that just replace the localhost with the ip or url of the host you want to connect to.
Republikin is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Connecting to a database
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11942 seconds with 12 queries