RE: [PHP] best function to use ~ file_get_contents or ?
| From: | Andrea Giammarchi | Date: | Wed, 16 Sep 2009 09:37:07 +0000 |
| Subject: | RE: [PHP] best function to use ~ file_get_contents or ? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298090@lists.php.net to get a copy of this message | ||
This is what I said, except if you want to grab the content you need to request HEAD first and
eventually GET, and this is slower than just GET parsing headers.
In any case, curl is the answer, imho.
Regards
Requesting only the headers is a lot faster than requesting the headers AND the file itself.
_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.
http://www.microsoft.com/windows/windowslive/products/photos.aspx