PHP example - How to disable error reporting on a single expression?
PHP - How to disable error reporting on a single expression?
You can do this by preceeding the line with the source code by @
@$fp = fopen($YourFile,'r');
In this case PHP will not report an error if for example the specified file doesn't exist.