Well using the FTP functions you can connect to an ftp site, get a file listing, and get a filesize from a remote file.
That sounds to me like exactly what he is trying to do.
The process of how this is done.
open connection,
get filesize
close connection
:-)
The manual is full of info about how to use the ftp functions. that should give you a good start.