+ Reply to Thread
Results 1 to 4 of 4

Thread: PHP Mysql issue

  1. #1
    tri30t is offline x10Hosting Member tri30t is an unknown quantity at this point
    Join Date
    Jun 2008
    Posts
    7

    PHP Mysql issue

    I've searched the forums and I can't seem to find anything on this. I'm using a special php script from my computer that connects to a database on my computer. However, I want to connect to the database on my server here, to pull information from my phpBB database. Here is the code:

    $db = new db('mysql://tri30t_tri30t:password@tri30t.elementfx.com:3306/tri30t_tri30t');

    I've added the user to my list, and I've added my ip to my remote access list. but my $db->connect(); statement returns false, and I can't connect. What am I doing wrong?

  2. #2
    tittat's Avatar
    tittat is offline x10 Spammer tittat is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Kerala,India
    Posts
    2,479

    Re: PHP Mysql issue

    I am not well sure, but i think remote mysql access is not allowed.
    Sorry if i am wrong.
    PLAY ONLINE GAMES
    WWW.TMONDO.COM PlayFar Flash Games
    Former X10 Forum Senior Moderator(Retired)


  3. #3
    sunils's Avatar
    sunils is offline x10 Spammer sunils is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Chennai ,India
    Posts
    2,264

    Re: PHP Mysql issue

    /*******************Moving the Thread*****************/

    I think you are using the remote mysql feature which is not allowed on our servers. So better you connect to the mysql server using phpmyadmin, export the database as sql files and then you can use it.
    [LEFT][B]Sunil Sankar
    -------------------------------------------------------------------------

  4. #4
    Scoochi2's Avatar
    Scoochi2 is offline x10 Sophmore Scoochi2 is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    Southport!
    Posts
    185

    Re: PHP Mysql issue

    Or if it's dynamic and you need the contents of the database at the current time, write a script to access the database on the local server, then simply pull the data from there.
    For example, have the online page output XML, then render the XML on your computer's PHP to get the values you desire.
    If anyone can see it, my post was meant for anyone who reads it. Don't take it personally or think I'm being condescending... :nuts:

+ Reply to Thread

Similar Threads

  1. [PHP] MySQL and PHP
    By Bryon in forum Tutorials
    Replies: 43
    Last Post: 03-24-2011, 07:27 AM
  2. Places to learn php
    By JaWasabi in forum Scripts & 3rd Party Apps
    Replies: 9
    Last Post: 01-13-2009, 02:03 AM
  3. [Cossacks] PHP Wont Load MYSQL DOWN
    By pasacom in forum Free Hosting
    Replies: 0
    Last Post: 08-26-2008, 12:30 AM
  4. Also got the PHP MySQL error
    By adfad666 in forum Free Hosting
    Replies: 1
    Last Post: 08-16-2008, 07:52 PM
  5. php settings change issue please help
    By wasif hyder in forum Free Hosting
    Replies: 4
    Last Post: 02-15-2008, 01:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers