Having a testing server is quite a common practice, but what happens when you want to go live and you don't want all of your error messages displayed?
A good way of doing this is to create a variable that you can then use to detect what server your code is running on and set your error displaying accordingly. The following section of code will set a variable to true if the code is not running on the server name www.hashbangcode.com. This variable is then used to set the error reporting level.
0 comments:
Post a Comment