Question: I have a PHP script that stops processing (it seems to be) on a PHP warning. The error is general "PHP Warning: fopen" - "failed to open stream: No such file or directory".

Should PHP stop here? I thought only on fatal errors?

Is there a way to get it to continue?

Answer: 
A warning is emitted but the script execution continues. The fact that your script stops is more likely related to processing you try to do afterward but not to the warning itself.

The previous suggestion to use file\_exists and is\_readable is a good one.
[As noted on the php documentation page](http://us3.php.net/manual/en/function.fopen.php),

> 
> If the open fails, an error of level E\_WARNING is generated. You may use @ to suppress this warning. 
> 
> 
>