Corrected filehandle and filesize PHP warnings.