I'm pretty new to php, and I'm making everything on my web site php-driven.
If a warning or error occurs, I don't want the user to see it. Primarily because some of the messages give away hidden file paths that I don't want anyone to know about.
I would prefer to redirect all warnings and errors to a log file. If that's not possible, I would like to just hide them.
I've googled and can't really find what I'm looking for. PHP.net's manual describes something called display_errors, which doesn't sound bad, but then it says:
"Note:
This is a feature to support your development and should never be used on production systems (e.g. systems connected to the internet). "
http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors
And I read you can use the @ before any expressions, which I will do if I must, but I don't like it because it's messy. I'd rather there was one thing I could set to say "send all warnings and errors here".
Any advice?
Thank you!