>>21
>あれ。$count = fgets($fp, filesize($file));に変えたら
>カウンタが1から動かなくなってしまった。

以下php.netより。

>string fgets ( int fp [, int length])
>Returns a string of up to length - 1 bytes read from the file
>pointed to by fp.

freadのほうは長さいっぱいまで読んでくれると書いてある。
>string fread ( int fp, int length)
>fread() reads up to length bytes from the file pointer
>referenced by fp.

試しにログファイルに2バイト以上のデータを突っ込んでみれ。
何かわかるかも。