The perfect PHP script for effectively managing most website error documents.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
error_documents
CHANGELOG.txt
LICENSE.txt
README.md
README.txt
_config.yml

README.md

Perfect Error Documents


“The perfect PHP script for effectively managing most website error documents!”

Script Name : Perfect Error Documents | Version : 2.1.0

Author : James Anderson Jr. (Email: james@jamesandersonjr.com; Web : https://card.jamesandersonjr.com)

Website : https://www.perfecterrordocs.com

Download Address : https://www.perfecterrordocs.com/download/

License Address : https://www.perfecterrordocs.com/license/

Demo Address : https://www.perfecterrordocs.com/demo/


Copyright :

Copyright © 2019 James Anderson Jr.

This file is part of the “Perfect Error Documents v.2.x.x” online script.

“Perfect Error Documents” (“PED”) online script is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the full “PED” license agreement at [ https://www.perfecterrordocs.com/license/ ].

You should have received a PDF copy of the license agreement, along with your download of the “PED” online script. If not, please visit: [ https://www.perfecterrordocs.com/license/ ], for your free copy.

For support, and all other inquiries, please feel free to email us at: cs [at] perfecterrordocs [dot] com.


System Requirements :

Web Server : Apache 2.x hosted on UNIX/Linux

PHP : PHP 5.4.x or Later

Database : Not Required


To Install :

  1. Unzip the downloaded ***‘PerfectErrorDocuments.zip’*** (***‘PerfectErrorDocuments-master.zip’*** on GitHub) web package contents into an off-line repository of your website, with the ‘error_documents’ folder being a direct sub-directory of the root of your website’s tree. (e.g. ‘/public_html/error_documents/’ )

  2. Open ‘config.php’ located inside ‘/error_documents/config/’ folder, with your favorite HTML/PHP code editor (Notepad++ is highly recommended).

  3. Locate, and update line | 47 |, as shown below, to the actual location of your webmasters contact page.

47 |$webmaster_link = "/contact_webmaster.php";

(e.g. $webmaster_link = "/contact_wm.php";)

Side Note: | This can be a relative URL, a root-relative URL (as shown above), an absolute URL, or a 'MailTo:' email link. Just make sure it points to the correct location of your webmasters contact info.

  1. Locate, and update line | 51 |, as shown below, to include your ‘Facebook App ID’, if you have a ‘Facebook App’. If not, you can create one here.

51 |$facebook_app_id = "";

  1. Locate, and update line | 53 |, as shown below, to include your ‘Facebook Page ID’, if you have a ‘Facebook Page’. If not, you can create one here.

53 |$facebook_page_id = "";

Side Note: | You must be signed into an active Facebook account, in order to create a new ‘Facebook App’, or a new ***‘Facebook Page’***.

  1. Locate, and update line | 57 |, as shown below, to include your ‘Twitter’ username, if you have a ‘Twitter’ account for your website. If not, you can create one here.

57 |$twitter_usrn = "";

Side Note: | ALL of the social media account PHP variables, such as $facebook_app_id, $facebook_page_id, and $twitter_usrn will gracefully fallback to PED's own default social media account information, if you do not enter any overriding values of your own (So, if you skip steps (4-6), and you decide to leave one, or more, of them blank, it won't break anything).

  1. Locate, and update line | 61 |, as shown below, to include your websites current locale. Use the format: 'language_TERRITORY'. For a list of valid locales, visit: [ https://fbdevwiki.com/wiki/Locales ].

61 |$locale = "";

  1. Save, and close, the ‘config.php’ file.

  2. Upload the entire ‘error_documents’ folder into the root directory of your website (usually the ‘public_html’ directory).

Side Note: | For ‘add-on domains’ and ‘subdomains’ usually not accessed directly under the web server’s primary root directory (e.g. ‘public_html’), please relocate the ‘error_documents’ folder into the directory that your ‘add-on domain’ or ‘subdomain’ points to, in order to use the script for that website.

  1. Finally, add the below lines of code, into your ‘.htaccess’ file, in the root directory of the same website you intend to deploy the “PED” script (See previous ‘Side Note’ ). If you don't have an ‘.htaccess’ file, already, you will need to create one, now.
# ###################---Specify Error Documents---################### #

# Error - [401] Unauthorized

ErrorDocument 401 /error_documents/error401.php

# Error - [403] Forbidden

ErrorDocument 403 /error_documents/error403.php

# Error - [404] Not Found

ErrorDocument 404 /error_documents/error404.php

# Error - [500] Internal Server Error

ErrorDocument 500 /error_documents/error500.php

# ################################################################### #

That’s it! Your new installation of the ‘PED’ online script is now complete.😃👍

Congratulations on obtaining, and installing your personal copy of the ‘PED’ online script.👏


Support :

💡 Remember: | For support, and all other inquiries, please feel free to email us 24/7 at: cs [at] perfecterrordocs [dot] com.


Donations :

💡 Remember: | 100% voluntary donations are currently being accepted through our Official Website at [ https://www.perfecterrordocs.com/donate/ ]. We would surely appreciate your support! ❤

Thank You for choosing “PED!” ❤

We look forward to serving you!