Hi,
I want to turn off the text that php throws out as warnings.. like such and such file could not be included etc.. the warnings give away my directory strucutre and names.. and the names of my included scripts etc... i do not want this information to be ever revealed.. no matter how bad the warning is.. how do i stop php from throwing out warnings? i want to keep warnings on.. when I am writing the scripts.. but when it goes public.. i want the warnings text output to stop..
One way is to use @. Like if you are doing an include:
@include('file.txt');
The @ suppresses errors so they don't get thrown to the screen.
hi..
I want to block all warnings.. not just for particular functions with @
Set the error handling and logging line in your php.ini like this error_reporting = E_ALL & ~E_NOTICE