03-22-2009, 08:32 PM
[eluser]brianw1975[/eluser]
From my understanding file_get_contents() is designed for strings and will allocate memory appropriate for a string the size of the file while readfile() is designed for binary files.
http://us.php.net/manual/en/function.readfile.php
http://us.php.net/function.file-get-contents
From my understanding file_get_contents() is designed for strings and will allocate memory appropriate for a string the size of the file while readfile() is designed for binary files.
http://us.php.net/manual/en/function.readfile.php
http://us.php.net/function.file-get-contents