im getting this error on my php script:

Warning: fread() [function.fread]: Length parameter must be greater than 0


what can i do to fix it