J'ai un constructeur qui marche en local mais qui ne marche plus lorsque je le met sur le serveur.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| function phpList($pathToPhpList=NULL) {
// if no path specified, assume this file is in thephplist dir
if (empty($pathToPhpList)) $pathToPhpList = dirname(__FILE__);
// Include your phpList config.php file here
require("$pathToPhpList/config/config.php");
$this->tablePrefix = $table_prefix;
$this->userTablePrefix = $usertable_prefix;
// Setup and connect to the database (this only needs to be done once per session
// You don't need to change anything here.
include_once("DB.php");
$this->db = DB::connect("mysql://$database_user:$database_password@$database_host/$database_name");
if (DB::isError($this->db)) die($this->db->getMessage());
$this->db->setFetchMode(DB_FETCHMODE_ASSOC);
} |
ca bloque au niveau de
$this->db = DB::connect("mysql://$database_user:$database_password@$database_host/$database_name");
j'ai verifié les variables sont correcte je comprend pas ce qui ne marche pas
Partager