Is there a way of getting the filesize of a file that isn't local (so it starts with http://). I'm doing a downloads database with MySQL and I want it to find the size by itself.
If the server sends back a content-length header, you can tell the size by opening a socket and sending a HEAD request for the file. Otherwise, you'd have to download the file and call strlen().