I use Tar class to backup directories, but if a directory contains an empty file, the warning below is displayed:
>Warning: fread() [function.fread]: Length parameter must be greater than 0 in .../tar.class.php on line 186.
The line 186 is:
>$data=fread($contentfile,filesize($this->filelist[$x]));
I just put a @ before fread to hide the warning, but maybe there's a better way, like...