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.
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.