Please contact us if you have any trouble resetting your password.
Use stat() to find the size of a file. It accesses the file's metadata rather than opening the file itself, so is more efficient.