Results 1 to 4 of 4
  1. #1
    pph Expert! Gordon's Avatar
    Join Date
    January 18th, 2005
    Location
    Edmonton Canada
    Posts
    5,781
    I don't know if this is possible maybe some here will be able to tell me.

    I have a website say abc.com and I want to connect to a database that is on my other site xzw.com, can this be done if so is it possible to tell me the code to use please?
    One day parasites and their ilk will be made illegal, I bet a few Lawyers will be pissed off when the day comes.
    Mr. Spitzer is fetching it nearer

    YouTrek

  2. #2
    Affiliate Miester my2cents's Avatar
    Join Date
    January 18th, 2005
    Location
    far far away....
    Posts
    2,161
    yes it can be done...

    you need to set the database if website xyz to accept remote access

    change localhost in your config to xyz.com
    on website abc.com

  3. #3
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    742
    Also, if they're with the same host, see if you can backend them, that is link them together directly without using the Itnernet. Otherwise the host is going to tag you for bandwidth.

  4. #4
    Sgt. Joe Friday frank3iii's Avatar
    Join Date
    January 18th, 2005
    Posts
    441
    This works for me Gordon:

    <?
    $dbhost = "xzw.com/pathtodatafeed.txt";
    $dbuser = "yourusername";
    $dbname = "databasename";
    $dbpass = "yourpassword";
    $db = mysql_connect("$dbhost","$dbuser","$dbpass");
    mysql_select_db("$dbname",$db);
    ?>

    Frank
    "Just the facts, Ma'am." Sgt. Joe Friday, Dragnet

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Hello Everyone! Looking forward to connecting
    By SupremeWebinar in forum Introduce Yourself
    Replies: 2
    Last Post: October 31st, 2013, 09:32 PM
  2. Connecting to RL
    By Mack in forum AM Navigator
    Replies: 15
    Last Post: June 22nd, 2007, 12:54 PM
  3. Need help connecting
    By Wayder in forum Programming / Datafeeds / Tools
    Replies: 13
    Last Post: September 24th, 2002, 03:58 PM

Posting Permissions

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