Visualizzazione risultati 1 fino 4 di 4

Discussione: aiuto con chat in php

  1. #1
    Guest

    Predefinito aiuto con chat in php

    salve a tutti..ragazzi ho un errore ho messo una chat in php sul mio sito caricata tutta però una volta che apro l'index.php mi da questo errore Fatal error: Cannot instantiate non-existent class: database in /membri/joedesimonedj/Chat/configuration.inc.php on line 52 ho configurato il file configuration.inc.php per il mio database ma mi da sempre questo errore.qualcuno mi sa dire che errore e e dove sta l'errore?Non sono ai massimi livelli di php.grazie a tutti.Simone

  2. #2
    L'avatar di freeweb
    freeweb non è connesso Utente
    Data registrazione
    09-09-2002
    Residenza
    Torino
    Messaggi
    202

    Predefinito

    Posta il file configuration.inc.php, senza i tuoi dati

  3. #3
    Guest

    Predefinito

    Codice PHP:
    <?php
    /**
    *
    * Mazen's PHP Chat Version 3.0.0B1
    * Chat-Script written in PHP
    * 2001-04-12
    *
    * Copyright (c) 2001 Marcel Beerta <marcel@beerta.de>
    *
    *
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License as
    * published by the Free Software Foundation; either version 2 of
    * the License, or (at your option) any later version.
    *
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    * General Public License for more details.
    *
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    *
    */

    $dbhost = "localhost";
    $dbuser = "root";
    $dbpass = "";
    $dbname = "chat3b1";


    $basepath = "/home/www/chatb1/chat";

    /**
    *
    * DO NOT CHANGE ANYTHING BELOW IF YOU DON'T KNOW WHAT YOU ARE DOING
    *
    */

    $includes = array(
    1 => "database.inc.php",
    2 => "user.inc.php",
    3 => "functions.inc.php",
    4 => "admin_functions.inc.php",
    5 => "pear/ITX.php",
    );

    while (list(,
    $include) = each($includes)) {
    include
    $basepath."/include/".$include;
    }
    $db = new Database($dbhost, $dbuser, $dbpass, $dbname);

    if (!empty(
    $_SERVER['PHP_SELF'])) {
    session_start();
    }

    $lang = getConfig("language");
    include
    $basepath."/lang/lang-".$lang.".php";

    $deftpl = getConfig("template");
    $tplpath = $basepath."/themes/".$deftpl;
    ?>
    questo è il file pero il ho cambiato il db name la pass e admin logicamente.

    [MOD]
    Per evitare post chilometrici, utilizza i tag di codice
    Li ho inseriti io ora nel tuo messaggio
    [/MOD]
    Ultima modifica di radioradianti : 07-01-2006 alle ore 03.46.11

  4. #4
    L'avatar di pietrovischia
    pietrovischia non è connesso Utente attivo
    Data registrazione
    16-10-2005
    Residenza
    Padova
    Messaggi
    351

    Predefinito

    Hai cambiato anche il $basepath in /membri/joedesimonedj/ ?

    Ti sei assicurato che "database.inc.php" sia nella cartella corrente? (poiché il messaggio di errore lamenta la non esistenza della classe "database", presumibilmente non viene caricato il file dove visto il nome ci dovrebbe stare la definizione

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •