PHP Exception getFile() Method

PHP Exception Reference : Throw an exception and output the path of the file in which the exceptionoccurred

Definition and Usage

The getFile() method returns the absolute path to the file where an exception occurred.

Syntax

$exception->getFile()

Technical Details

Return Value: Returns a string

Related Pages

Read more about Exceptions in our PHP Exceptions Chapter.

❮ PHP Exception Reference