Problème avec Wamp server

Résolu
diaph84 Messages postés 36 Date d'inscription   Statut Membre Dernière intervention   -  
diaph84 Messages postés 36 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,

J'utilise Wamp server, j'ai intallé la dernière version et depuis j'ai, sur l'index, le message suivant :

Notice: Undefined variable: HTTP_SERVER_VARS in C:\wamp\www\outils\config.php on line 41

Notice: Undefined index: Lang in C:\wamp\www\outils\config.php on line 62


Pourtant je n'ai rien changé dans mon config.php

Code du config :

Lignes 40 à 64

// Connexion à ma base de données et définition des répertoires du site web
if (strtolower($HTTP_SERVER_VARS["HTTP_HOST"]) == $LocalHost) {

$MySQLHost = $LocalMySQLHost;
$ConnectName = $LocalConnectName;
$PassWord = $LocalPassWord ;
$DbName = $LocalDbName;
$PhpMyAdminRoot =$LocalPhpMyAdminRoot;
$PhpMyAdminCmd=$LocalPhpMyAdminCmd;
}
else {
$MySQLHost = $ISPMySQLHost;
$ConnectName = $ISPConnectName;
$PassWord = $ISPPassWord ;
$DbName = $ISPDbName;
$PhpMyAdminRoot =$ISPPhpMyAdminRoot;
$PhpMyAdminCmd=$ISPPhpMyAdminCmd;
}
$db = mysql_connect($MySQLHost, $ConnectName, $PassWord);
mysql_select_db($DbName, $db);

// Langue : Français implicite
if ($_GET['Lang']=="") {
$_GET['Lang']="fre";
}

Avant, ça fonctionnait à merveille !
Sur une autre page j'ai le message suivant :

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Pourtant la connection à la base se fait, puisqu'il affiche certaines données de la BD sur l'index
Comprend pas!

Merci de m'aider
A voir également:

1 réponse

diaph84 Messages postés 36 Date d'inscription   Statut Membre Dernière intervention  
 
La version Wamp 2.0i ne fonctionne pas
La version Wamp 2.0a fonctionne ???
J'ai donc réinstallé l'ancienne version, comme quoi...
0