The error means exactly what it says. Whoever set up your server (probably your webhost) has disabled the use of the exec function. In other words, you can't use exec.
You could probably work around it by using glob to get the file of files, or filesize to get the size (in bytes) of the file.