PHP: fread - Manual - PHP: Hypertext Preprocessor
Notes Note: If you just want to get the contents of a file into a string, use file_get_contents() as it has much better performance than the code above. Note: Note that fread() reads from the current position of the file pointer. Use ftell() to find the ....