Website help please.

Results 1 to 5 of 5
  1. #1
    Apprentice Jefy66 is offline
    MemberRank
    May 2009 Join Date
    21Posts

    Website help please.

    Hey,

    When I upload a website to xxamp, i get the following error:
    Notice: Use of undefined constant Host - assumed 'Host' in C:\xampp\htdocs\secure\config.php on line 14

    Line 14:
    $_MYSQL[Host] = "localhost";

    When I Change the $__MYSQL[Host] to $__MYSQL['Host'] it works.
    But then I need to change it all..

    So does anyone know how to fix it?

    Sorry for bad english.

    Jeffrey,


  2. #2
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Website help please.

    It's a variable, it shouldn't be necessary to change. And GunZ uses MSSQL o-o?

  3. #3
    Apprentice Jefy66 is offline
    MemberRank
    May 2009 Join Date
    21Posts

    Re: Website help please.

    Yeah I know it use MSSQL..
    I get it on 30 variables, this is just an example..

    But is it something with my xxamp ?

  4. #4
    Selfish Bastard Z1ls is offline
    MemberRank
    Aug 2009 Join Date
    WinlandLocation
    2,048Posts

    Re: Website help please.

    Quote Originally Posted by Jefy66 View Post
    Yeah I know it use MSSQL..
    I get it on 30 variables, this is just an example..

    But is it something with my xxamp ?
    Well, if you install Xampp 1.7.3, you shouldn't have to change anything on it, it should work 100% without any edits ^^

  5. #5
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Website help please.

    I'm not really much of a xampp user. More of an AppServ one.

    To get AppServ to work with MSSQL.

    open up php.ini>find>;extension=php_mssql.dll>remove the ;.

    Then download this dll ntwdblib.dll and place it into AppServ/Apache 2.2/ and in PHP5/ and in PHP5/bin.

    And of course, restart your apache server.



Advertisement