Results 1 to 2 of 2

Thread: How to do this?

  1. #1
    Join Date
    Dec 2003

    Unanswered: 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.

    Last edited by arminc01; 03-09-04 at 14:41.

  2. #2
    Join Date
    Mar 2004
    Nashville, IN

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts