Archive for July, 2009

Get Content-Length of Remote File in PHP

Update: Apparently you can just use the get_headers() function. I am retarded.
I just posted this to the PHP comments, but I figured I’d put here as well. The stat() suite of functions isn’t available to the HTTP stream wrapper in PHP, so if you’re using readfile() to handle downloads (for example, like I was), and [...]

July 25, 2009   Posted in: php  2 Comments