From ef73f03c41be70101ec5b7106518791482c422ed Mon Sep 17 00:00:00 2001 From: jxmot Date: Sat, 28 May 2022 13:07:34 -0500 Subject: [PATCH] updated with info on testhttperror.php --- README.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 80f4f17..23ffebf 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ But that problem is easily fixed. Like Linux, Windows has the ability to create ### Testing -At the top of `httperror.php` you find this - +At the top of `/errpages/httperror.php` you find this - ```php // uncomment for testing @@ -50,6 +50,27 @@ define('_DEBUG', false); Change `false` to `true` and "debug" will be active. You can then load the page from the server and a `404` error will be simulated. +#### Additional Testing + +The `/testhttperror.php` file can be used for testing error codes. First set `_DEBUG` to `false` in `/errpages/httperror.php`, and then open `/testhttperror.php` in your edtior - + +```php + +``` + +Just change `$testcode` to the error code you want to test. Then point your browser to `testhttperror.php`. + ### Folder Junctions You might be familiar with a Linux *hard link*. The Window's equivalent is a *junction*. And they are particularly useful when keeping project folders organized in separate and possibly unrelated locations but you want to serve them with XAMPP(*or MAMP*) during development. @@ -106,7 +127,7 @@ ErrorDocument 405 /tests/httperror/errpages/httperror.php This part `/tests/httperror` will need editing depending on how you set up the local server. -## Live +## It Lives! Most internet web servers have a *common* location for website files. It's typically located at `/home/$USER/public_html`. Where **`$USER`** is the *user* that owns the `public_html` folder. Depending on your server's particular configuration that folder may be named differently or in a different location.