I understand the differences between fgets() and fgetss() but I don\'t get the difference between fgets() and fread()<
Both the functions are used to read data from files
fgets($filename, $bytes) fgets usually reads $bytes-1 amount of data and stops at a newline or an EOF(end-of-file) whichever comes first. If the bytes are not specified, then the default value is 1024 bytes.
fread($filename, $bytes) fread reads exactly $bytes amount of data and stops only at EOF.