Is using $_SERVER['REMOTE_ADDR']
for proper automatic handling of errors reliable?
I'm thinking about using it to automatically disable the display of any PHP errors, show a general "Oops, there wen't something wrong." error to the user and log them internally instead, if the user's IP address is not found in the white list.
The white list would contain the localhost IP and any other IP adresses such as my home PC.
But if people are able to fake $_SERVER['REMOTE_ADDR']
by setting it to whatever value they want, then I don't think this would be a good idea.