Need help uploading php script

Discussion in 'PHP' started by bilalownsu, Apr 21, 2007.

  1. #1
    I bought a auto-surfing script for my website and uploaded the files to the server. The website isnt working (url = http://earninglagoon.info )
    Can anyone help me fix it please? (I am a noob at php/mysql)
     
    bilalownsu, Apr 21, 2007 IP
  2. champ_rock

    champ_rock Peon

    Messages:
    3,349
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #2
    seems like a configuration problem with Mysql..

    have u chnged all the things in the config.php file? change the mysql database name, user, password etc..
     
    champ_rock, Apr 21, 2007 IP
  3. bordello

    bordello Notable Member

    Messages:
    3,204
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    290
    #3
    man u have entered database information wrongly.To correct all errors edit config.php file
     
    bordello, Apr 21, 2007 IP
  4. bilalownsu

    bilalownsu Peon

    Messages:
    122
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    <?php
    //===========Your Sites Main Settings===========//

    //Purchase confirmation and site contact email address (this is never shown to members!):
    $private_sys_email = 'admin@earninglagoon.info';

    //Database host (localhost is your own domain):
    $db_host = 'localhost';

    //Database username:
    $db_user = 'dbuername';

    //Database password:
    $db_pwd = 'dbpass';

    //Database name:
    $db_name = 'dbname';

    //Main header root loaction:
    $m_header = $_SERVER['DOCUMENT_ROOT'] . '/header.php';

    //Main footer root loaction:
    $m_footer = $_SERVER['DOCUMENT_ROOT'] . '/footer.php';

    //Members header root loaction:
    $mem_header = $_SERVER['DOCUMENT_ROOT'] . '/header.php';

    //Members footer root loaction:
    $mem_footer = $_SERVER['DOCUMENT_ROOT'] . '/footer.php';

    //Site URL:
    $self_url = 'http://earninglagoon.info';

    //Site name for security checks:
    $self_name = 'http://earninglagoon.info/';

    //Default site to show when no valid user sites:
    $default_site = 'http://earninglagoon.info/myadds.html';

    //Site Title:
    $title = 'Earning Lagoon';

    //Name the Upgrade Credits (Do not include the " s " - Program will do this for you - i.e. Upgrade Credit or Upgrade Unit etc...):
    $upgrade_title = 'Upgrade Unit';

    //Site URL to Index.php - Leave out http:// and do not add a / at the end of the url:
    $siteurl = 'www.earninglagoon.info/index.php';
     
    bilalownsu, Apr 21, 2007 IP
  5. bilalownsu

    bilalownsu Peon

    Messages:
    122
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I edited some of the stuff but I dont know how to do the database. I am using direct admin to control panal. Can you guys give me instructions on how to do this please, i have no idea.
     
    bilalownsu, Apr 21, 2007 IP