error in website.

Results 1 to 4 of 4
  1. #1
    Enthusiast Kokki is offline
    MemberRank
    Oct 2010 Join Date
    41Posts

    error in website.

    yo, when i look my website, it says like that :
    "
    Notice: Use of undefined constant Host - assumed 'Host' in C:\Program Files (x86)\EasyPHP-5.3.3.1\www\config.php on line 10

    Notice: Use of undefined constant User - assumed 'User' in C:\Program Files (x86)\EasyPHP-5.3.3.1\www\config.php on line 11

    Notice: Use of undefined constant Pass - assumed 'Pass' in C:\Program Files (x86)\EasyPHP-5.3.3.1\www\config.php on line 12

    Notice: Use of undefined constant DBNa - assumed 'DBNa' in C:\Program Files (x86)\EasyPHP-5.3.3.1\www\config.php on line 13

    Fatal error: Call to undefined function mssql_connect() in C:\Program Files (x86)\EasyPHP-5.3.3.1\www\config.php on line 15
    "

    How can i fix that?


  2. #2
    Account Upgraded | Title Enabled! gatsu is offline
    MemberRank
    Nov 2008 Join Date
    ItalyLocation
    250Posts

    Re: error in website.

    You need to configure config.php with your date. (Name db, user, psw)

  3. #3
    Ā  Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts

    Re: error in website.

    No, you have to configure the php.ini correctly. Look for No lifex's MPOG web thread and edit your php.ini according to the instructions given.

  4. #4
    Member xTruongx is offline
    MemberRank
    Mar 2010 Join Date
    Michigan, USLocation
    79Posts

    Re: error in website.

    This is just a warning that a variable been used more then once which you don't have to worry about
    Code:
    Notice: Use of undefined constant Host - assumed 'Host' in C:\Program Files (x86)\EasyPHP-5.3.3.1\www\config.php on line 10
    Notice: Use of undefined constant User - assumed 'User' in C:\Program Files (x86)\EasyPHP-5.3.3.1\www\config.php on line 11
    Notice: Use of undefined constant Pass - assumed 'Pass' in C:\Program Files (x86)\EasyPHP-5.3.3.1\www\config.php on line 12
    Notice: Use of undefined constant DBNa - assumed 'DBNa' in C:\Program Files (x86)\EasyPHP-5.3.3.1\www\config.php on line 13
    This means that php does not know what to do with this function so check your php.ini to fix this check the spoiler below
    Code:
    Fatal error: Call to undefined function mssql_connect() in C:\Program Files (x86)\EasyPHP-5.3.3.1\www\config.php on line 15
    Spoiler:

    Disabled function
    ;extension=php_mssql.dll

    Change to

    Enabled function
    extension=php_mssql.dll


    If you don't want to see messy errors you can put this is the beginning of your script or at the top of your Index script
    Code:
    error_reporting("E_ALL")
    Last edited by xTruongx; 10-12-10 at 08:31 PM.



Advertisement