Tag Archives: fread()

file_get_contents vs fread

ShareThe main difference between a complete file read using fread and file_get_contents is that file_get_contents may use mmap (if your OS supports it) to use file memory mapping, which can eliminate a little of the copying and/or allocation of memory … Continue reading

Posted in php | Tagged , , , | Leave a comment