I was thinking of doing a head request with cURL, was wondering if this is the way to go?
The best solution which follows the KISS principle
$head = array_change_key_case(get_headers("http://example.com/file.ext", 1)); $filesize = $head['content-length'];
2.1m questions
2.1m answers
60 comments
57.0k users