Results 1 to 5 of 5

Thread: PHP error messages: Why??

  1. #1

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425

    Question

    When attempting to execute the Stutter chat script, the following errors are generated.

    Code:
    Warning: Access denied for user: 'nobody@localhost' (Using password: NO) in common.php on line 36
    
    Warning: MySQL Connection Failed: Access denied for user: 'nobody@localhost' (Using password: NO) in common.php on line 37
    
    Warning: MySQL: A link to the server could not be established in common.php on line 37
    However, the script still works.

    The variables have been set up as below ($db_password not really starred). Lines 36 and 37 in the mentioned file, common.php call variables from the list below.

    Code:
    $db_host = "localhost";
    $db_user = "cybernetx";
    $db_password = "*********";
    $db_name = "cybernetx";
    $db_table = "stutter";
    $timeout = 180;
    $language = "english";	// current translations: english|spanish
    and this is the section from the index.php file which cals the variables.

    Code:
    $user = ereg_replace(" ", "_", $user);
     $user = strip_tags($user);
     if ($user == "-") { $user = ""; }
     if ($user == "*") { $user = ""; }
     if ($user) {
      setcookie("StutterUser", $user);
     }
     include("common.php");
    Please help!

    PS, the database is correctly set up also.

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    hmmm.. I don't know sh*t about PHP and these forms are not intended for PHP, but is there a user called nobody at your localhost? Maybe that's the prob... maybe I'm just brabbling but what the hell...
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425
    I've posted it on the Internet forum as well!

    All username and passsword are trying to do is to connect tpo a mySQL database on a server called localhost. There are no other users. Thanks for trying though!

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    hmm.. your running the server yourself (assuming that by seeing Localhost in your post) maybe (I say maybe) it doens't allow hostnames, instead try 127.0.0.1
    Not sure if it works but it's worth the try
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  5. #5

    Thread Starter
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425
    It's running on UKLinux's server, and localhost as the server name works with another script. This script does work, It's just that those error messages come up for no apparent reason.

Posting Permissions

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



Click Here to Expand Forum to Full Width