guarda il codice di esempio qui:

http://fr.php.net/manual/en/function.fread.php

ciao