| | |
| | // Coerce value to largest natural numeric data type. |
| | - $count = file_get_contents( $filename ) + 0; |
| | + $count = @file_get_contents( $filename ) + 0; |
| | |
| | // Write the new counter value. |
 |
| | */ |
| | function download( $path ) { |
| | - $size = filesize( $path ); |
| | + $size = @filesize( $path ); |
| | $fileinfo = pathinfo( $path ); |
| | $filename = normalize_filename( $fileinfo ); |
 |
| | header( 'Content-Length: ' . ($seek_end - $seek_start + 1) ); |
| | |
| | - $fp = fopen( $path, 'rb' ); |
| | + $total_bytes = 0; |
| | + $fp = @fopen( $path, 'rb' ); |
| | |
| | if( $fp !== false ) { |
| | - fseek( $fp, $seek_start ); |
| | + @fseek( $fp, $seek_start ); |
| | |
| | $aborted = false; |