Marshall Burns wrote:
I have a script that downloads a sequence of files online. Every hundred
files or so, it fails with:

Check for the return value being equal to false:


    if( ($sFil = file_get_contents( $sURL )) === false )
        // FAIL
        // SUCCESS


Make sure you use the triple '=' comparison operator since you need to check against the type being boolean also.

Application and Templating Framework for PHP

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to