[Php-avanzado] Intentando depurar sin Display_Errors ...
unes pacio
unespac en gmail.com
Vie Mayo 14 12:41:53 ART 2010
Buenas Roger, creo que lo que andas buscando es esto:
ini_set ( string $varname , string $newvalue )
tambien supongo quepodrias hacerlo desde un .htaccess
Saludos
El 14 de mayo de 2010 12:06, Rogelio A. Schwindt <roger en telefax.com.ar>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;
> }
> ***************************
>
> Rogelio A. Schwindt
> Analista de Sistemas
> Area informática
> FCA - Balcarce
> agrainfo en mdp.edu.ar
> ---------------------------------------------------------
>
> _______________________________________________
> Php-avanzado mailing list
> Php-avanzado en pato2.fi.mdp.edu.ar
> http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado
>
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://www3.fi.mdp.edu.ar/cgi-bin/mailman/private/php-avanzado/attachments/20100514/3578c474/attachment.htm
Más información sobre la lista de distribución Php-avanzado