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

search for in the

Exception::getLine> <Exception::getCode
[edit] Last updated: Fri, 24 Jun 2011

view this page in

Exception::getFile

(PHP 5 >= 5.1.0)

Exception::getFileنام فایل ایجاد کننده استثنا را باز می‌گرداند

Description

final public string Exception::getFile ( void )

نام فایل ایجاد کننده استثنا را باز می‌گرداند.

Parameters

This function has no parameters.

Return Values

نام فایل ایجاد کننده استثنا را باز می‌گرداند.

Examples

Example #1 نمونه Exception::getFile()

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

The above example will output something similar to:

/home/bjori/tmp/ex.php



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

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