Ver Mensaje Individual
  #21 (permalink)  
Antiguo 16/06/2008, 13:24
Avatar de chitoso
chitoso
 
Fecha de Ingreso: mayo-2008
Ubicación: Montevideo, Uruguay
Mensajes: 205
Antigüedad: 18 años, 4 meses
Puntos: 5
Respuesta: Problema con require('dbconfig.php') en clase MySQLConnect

Estaba en OFF... buscando encontré lo siguiente, para mostrar los errores sin tener que cambiar el php.ini:

Código PHP:
ini_set('display_errors', 1);
ini_set('log_errors', 1);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');
error_reporting(E_ALL); 
Luego, el resultado del primer script (donde hago el load de Administrator) es el siguiente:

Código PHP:
Notice: Constant HOME already defined in /hsphere/local/home2/usr/beta.sitio.com/config.php on line 11

Notice
: Constant CLASSES already defined in /hsphere/local/home2/usr/beta.sitio.com/config.php on line 13

Notice
: Constant ADMIN already defined in /hsphere/local/home2/usr/beta.sitio.com/config.php on line 14

Notice
: Constant IMAGES already defined in /hsphere/local/home2/usr/beta.sitio.com/config.php on line 15


Notice
: Use of undefined constant DOCUMENT_ROOT - assumed 'DOCUMENT_ROOT' in /hsphere/local/home2/usr/beta.sitio.com/test.php on line 18
document root
: /hsphere/local/home2/usr/beta.sitio.com
Usuario
: admintest
Email
:
Tel:
Type: 
Segun entiendo, me dice que las constantes ya estan definidas... cuando da este tipo de error no se detiene la ejecución, verdad?

No estoy muy seguro que hacer ahora...