10-24-2009, 01:35 AM
I did this for a few sites on my server a while back; just made an /error.php?c=errorcode.
First, I quickly wrote a Perl script that added every HTTP error code to MySQL along with the 'definition' (too lazy to add them manually) and then I made error.php (that was responsible for everything) that would show the user what happened and give them a nice message depending on what happened, of course the information was written to a database that I later wrote another Perl script to read through and tell me what went wrong.
a pretty nice solution >_>
First, I quickly wrote a Perl script that added every HTTP error code to MySQL along with the 'definition' (too lazy to add them manually) and then I made error.php (that was responsible for everything) that would show the user what happened and give them a nice message depending on what happened, of course the information was written to a database that I later wrote another Perl script to read through and tell me what went wrong.
a pretty nice solution >_>