Difference between revisions of "Error message display"
From TMM Wiki
Jump to navigationJump to searchTMMStephenY (talk | contribs) m |
|||
Line 25: | Line 25: | ||
$errline -> The line number where the error occurred<br /> | $errline -> The line number where the error occurred<br /> | ||
− | [[Category: | + | [[Category:NATS4 Extras]] |
Latest revision as of 11:19, 6 June 2011
NATS 3
|
---|
Nats allows you as the owner to display your own error messages should an error occur on any of the NATS pages.
To do so, create the file custom_errors.php in your /nats/ directory. This file can contain whatever message you wish to display on an error page.
custom_errors.php: <? echo "An error has occurred on this page, Sorry"; ?>
This will output the following:
A Problem has been Encountered
An error has occurred on this page, Sorry
Available variables for this page are:
$errstr -> The error that has occurred
$errfile -> The file where the error occurred
$errline -> The line number where the error occurred