If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > How to do this?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-09-04, 13:24
arminc01 arminc01 is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
Remote script (non-localhost) to mysql connection

I want a php mailing list script residing on a "free" webspace server to add the data submitted by users to end up in a mysql database residing on my paid server space (free webspace provider charges for mysql databases).

How do I set the following paramaters in the php script to make this happen?

$databaseHost = "localhost";
$databaseName = "dbname";
$databaseUsername = "dbusername";
$databasePassword = "dbpassword";

It's fairly straight forward when the php script resides on the server containing mysql (localhost will connect), but I cannot get the script installed on free webspace to connect to my paid server space database.


csmith

Last edited by arminc01; 03-09-04 at 13:41.
Reply With Quote
  #2 (permalink)  
Old 03-10-04, 12:37
frrogoy frrogoy is offline
Registered User
 
Join Date: Mar 2004
Location: Nashville, IN
Posts: 5
Re: Remote script (non-localhost) to mysql connection

Does your free webspace server support PHP? I mean, does your .PHP file run ok otherwise on the free server? If so, wouldn't you just have to change "localhost" to the real host name of the webspace provider?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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