fix for error in apache log: PHP Warning:  fread(): Length parameter must be greater than 0 in /var/www/getLogs.php on line 56