Difference between revisions of "Error message display"
From TMM Wiki
Jump to navigationJump to searchTmmStephen (talk | contribs) |
TmmStephen (talk | contribs) |
||
Line 7: | Line 7: | ||
Nats allows you as the owner to display your own error messages should an error occur on any of the NATS pages. | 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. | + | 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. |
<pre> | <pre> |
Revision as of 17:31, 25 June 2009
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 occured on this page, Sorry"; ?>
This will output the following:
A Problem has been Encountered
An error has occured on this page, Sorry
Available variables for this page are:
$errstr -> The error that has occured<br> $errfile -> The file where the error occured<br> $errline -> The line number where the error occured<br>