I'm making a logging script that will log a visitor's way through the website. For example, it would write to a log file:
[Username (if logged in)]-[IP] requested [Page] at [Time]--received [Error Code] [Error Code Description].
Example output:
Jaxo (127.0.0.1) accessed index.php at 2:05 PM--Received 200 Ok
I can get everything working except the error codes bit (the part after the --).
How can I get error codes and error code definitions from PHP?
Thanks!