[Php-avanzado] Intentando depurar sin Display_Errors ...
Rogelio A. Schwindt
roger en telefax.com.ar
Lun Mayo 17 13:43:21 ART 2010
Leo y Unes pacio... gracias por responder.
Por ahora no consegui que me den algun acceso a log... por otro lado probe
con lo que sugerian con el .htaccess y tampoco logre nada.
Cualquier otra sugerencia se agradece.
Rogelio A. Schwindt
---------------------------------------------------------
----- Original Message -----
From: "Leonardo Tadei - Pegasus Tech Supply" <leonardot en pegasusnet.com.ar>
To: "Lista del curso de PHP Avanzado" <php-avanzado en pato2.fi.mdp.edu.ar>
Sent: Friday, May 14, 2010 12:39 PM
Subject: Re: [Php-avanzado] Intentando depurar sin Display_Errors ...
Hola Roger,
Sin saber en qué línea se produce el error y el mensaje, es difícil
saber qué cosa no funciona.
La configuración del servidor es correcta, en el sentido de que no es
sano mostrar errores por pantalla en un entorno de producción.
Para ver el error, es muy probable que tengas vía FTP acceso al log de
errores del sitio. Bajalo y leelo y ahí vas encontrar qué es lo que no
le gusta al hosting.
Si no lo ves a simple vista, consultá al hosting dónde podés ver el log
de errores.
Contanos!
El vie, 14-05-2010 a las 12:06 -0300, Rogelio A. Schwindt escribió:
> Hola..
>
> Hace rataso que no toco nada en php y ahora que me habilitaron en mi
> trabajo una base de datos en el hosting y php, pensaba subir algunos
> trabajos que he realizado como para ponerme a tono...
>
> El tema es que al subir el primer trabajo (que en mi maquina funciona
> 10 puntos) y cargar la pagina inicial.... solo veo una pagina en
> blanco y nada mas... sin errores, sin advertencias... nada...
>
> Tirando un phpinfo en el server (al cual no tengo acceso, salvo para
> subir y bajar archivos) me dice...
>
> PHP Version 5.3.2-1
> display_errors Off
> display_startup_errors Off
>
> encontre en internet que si pongo esto al comienzo del script puedo
> ver algunos de los errores..
>
> error_reporting (E_ALL);
> ini_set("display_errors", 1);
>
> El tema es que cuando quiero ejecutar la primer funcion aparentemente
> debe tirar un error FATAL que no me muestra, y no puedo continuar el
> script.
>
> Que puedo hacer para poder identificar los errores...???
>
> La primer funcion que ejecuto es esta...
> *********************************
> function unrealpath($start_dir, $final_dir, $dirsep =
> DIRECTORY_SEPARATOR){
>
> //Directory separator consistency
> echo "funcion unrealpath<br />";
> $start_dir = str_replace('/',$dirsep,$start_dir);
> $final_dir = str_replace('/',$dirsep,$final_dir);
>
> //'Splode!
> $firstPathParts = explode($dirsep, $start_dir);
> $secondPathParts = explode($dirsep, $final_dir);
>
> //Get the number of parts that are the same.
> $sameCounter = 0;
> for($i = 0; $i < min( count($firstPathParts),
> count($secondPathParts) ); $i++) {
> if( strtolower($firstPathParts[$i]) !==
> strtolower($secondPathParts[$i]) ) {
> break;
> }
> $sameCounter++;
> }
> //If they do not share any common directories/roots, just return
> 2nd path.
> if( $sameCounter == 0 ) {
> return $final_dir;
> }
> //init newpath.
> $newPath = '';
> //add by roger
> $dirsep = '/';
> ////
> //Go up the directory structure count(firstpathparts)-sameCounter
> times (so, go up number of non-matching parts in the first path.)
> for($i = $sameCounter; $i < count($firstPathParts); $i++) {
> if( $i > $sameCounter ) {
> $newPath .= $dirsep;
> }
> $newPath .= "..";
> }
> //if we did not have to go up at all, we're still in start_dir.
> if( strlen($newPath) == 0 ) {
> $newPath = ".";
> }
> //now we go down as much as needed to get to final_dir.
> for($i = $sameCounter; $i < count($secondPathParts); $i++) {
> $newPath .= $dirsep;
> $newPath .= $secondPathParts[$i];
> }
> //
> return $newPath;
> }
> ***************************
>
--
Leonardo Tadei
leonardot en pegasusnet.com.ar
http://blog.pegasusnet.com.ar
Firma pública: http://www.pegasusnet.com.ar/LeonardoTadei-public.key
_______________________________________________
Php-avanzado mailing list
Php-avanzado en pato2.fi.mdp.edu.ar
http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado
Más información sobre la lista de distribución Php-avanzado