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'];
1.4m articles
1.4m replys
5 comments
57.0k users