downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Exception::getLine> <Exception::getCode
Last updated: Fri, 20 May 2011

view this page in

Exception::getFile

(PHP 5 >= 5.1.0)

Exception::getFileObtiene el fichero en el que ocurrió la excepción

Descripción

final public string Exception::getFile ( void )

Obtiene el nombre del fichero desde donde fue creada la excepción.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Devuelve el nombre del fichero en donde fue creada la excepción.

Ejemplos

Example #1 Ejemplo de Exception::getFile()

<?php
try {
    throw new 
Exception;
} catch(
Exception $e) {
    echo 
$e->getFile();
}
?>

El resultado del ejemplo sería algo similar a:

/home/bjori/tmp/ex.php



add a note add a note User Contributed Notes Exception::getFile
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites