Professional Web Applications Themes

Trouble getting started with PHP/MySQL on 5gbfree.com - MySQL

Background: A few days ago I was browsing <www.free-webhosts.com>, specifically <http://www.thefreesite.com/Free_Web_Space/>, where it lists <http://www.5gbfree.com/> which allows 3GB of Web space plus 10 MySql databases! I tried to get an account there, but I can't see the letters in the box (CAPTCHA) because my access is text only. (Details of my situation: <http://www.rawbw.com/~rem/NewPub/mySituation.html>) But earlier today I briefly got full net access at a local computer lab that was just about to close for the day, so I was able to complete my registration. I now have my own 5gbfree.com site. I was able to create a database called test1, ...

  1. #1

    Default Trouble getting started with PHP/MySQL on 5gbfree.com

    Background: A few days ago I was browsing <www.free-webhosts.com>,
    specifically <http://www.thefreesite.com/Free_Web_Space/>, where it
    lists <http://www.5gbfree.com/> which allows 3GB of Web space plus
    10 MySql databases! I tried to get an account there, but I can't
    see the letters in the box (CAPTCHA) because my access is text
    only. (Details of my situation:
    <http://www.rawbw.com/~rem/NewPub/mySituation.html>)
    But earlier today I briefly got full net access at a local computer
    lab that was just about to close for the day, so I was able to
    complete my registration. I now have my own 5gbfree.com site. I was
    able to create a database called test1, a user called self, and set
    up priviledge for that user to use that database, except I have no
    idea how to check if it really worked, because my test script
    doesn't work:

    <?
    $user="calrobert_self"; $password="...";
    $res = mysql_connect(localhost,$user,$password);
    echo "res = $res<br>";
    $database="test1";
    mysql_select_db($database) or die( "Unable to select database $database");
    mysql_close();
    ?>

    It returns a empty result from mysql_connect, and it dies unable to
    select the database test1. I tried to join the newbie forum they
    have, but it requires javascript, which isn't available here. I did
    a Google search to try to find any previous mention of 5gbfree, but
    there's nothing except spam from a user that apparently has been
    terminated from 5gbfree because when I try to connect to that
    user's Web site I get redirected to 404.php and from there to the
    main greeting page for 5gbfree.com.

    So does anybody know anyone who already has an account on
    5gbfree.com who could tell me how to diagnose the problem I'm
    having with PHP/MySQL access? Or just somebody with general
    PHP/MySQL experience who can help me?

    ObNit: No, my password isn't "...". I omitted it here for obvious
    reasons. But in the actual script the correct password is there,
    AFAIK, I don't know how to verify that the password I set up
    matches the password I'm trying to use in this PHP script. I tried
    changing the password in the script to be incorrect, but the result
    is the same, null result (printing as empty string, i.e. nothing
    printed at all there) in $res. I also changed the $user to be a
    bogus value, and still there's no change in the output. I have no
    idea whether it's failing to find the user, or failing to match the
    password, or failing to find the database, or failing to allow that
    user to get access to that database.
    robert Guest

  2. #2

    Default Re: Trouble getting started with PHP/MySQL on 5gbfree.com

    "robert maas, see http://tinyurl.com/uh3t" <com> wrote in
    message news:com... 
    $database"); 

    [snip]

    Check "mysql_connect()" -- http://us2.php.net/function.mysql-connect

    Perhaps "localhost" should be the something in the 5gbfree.com domain...


    McKirahan Guest

  3. #3

    Default Re: Trouble getting started with PHP/MySQL on 5gbfree.com

    Message-ID: <com> from
    McKirahan contained the following:
     

    You should be able to find out by looking at
    http://www.5gbfree.com/phpmyadmin/ Mind you, I've just created a free
    account and phpmyadmin is hanging on my machine.


    --
    Geoff Berrow (put thecat out to email)
    It's only Usenet, no one dies.
    My opinions, not the committee's, mine.
    Simple RFDs http://www.ckdog.co.uk/rfdmaker/
    Geoff Guest

  4. #4

    Default Re: Trouble getting started with PHP/MySQL on 5gbfree.com

    Message-ID: <com> from Geoff
    Berrow contained the following:
     
    >
    >You should be able to find out by looking at
    >http://www.5gbfree.com/phpmyadmin/ Mind you, I've just created a free
    >account and phpmyadmin is hanging on my machine.[/ref]

    Horrendously slow, but works fine with

    $res = mysql_connect('localhost',$user,$password);

    --
    Geoff Berrow (put thecat out to email)
    It's only Usenet, no one dies.
    My opinions, not the committee's, mine.
    Simple RFDs http://www.ckdog.co.uk/rfdmaker/
    Geoff Guest

Similar Threads

  1. Replies: 1
    Last Post: September 7th, 12:25 PM
  2. Stopping Mysql started with mysqld_safe
    By salvador in forum MySQL
    Replies: 1
    Last Post: August 2nd, 07:49 PM
  3. php mysql trouble
    By DBLEXPOSURE in forum MySQL
    Replies: 2
    Last Post: November 16th, 05:05 AM
  4. Trouble Getting Started
    By PearlNC webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 1
    Last Post: July 15th, 03:16 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139