I have a simple question for you guys.
For example, In php we have ZipArchive class to create .zip files, and using exec we can do zip -r dir to compress a whole directory.
My question is, What is the best option, best performance ... etc?
Summary: exec vs class.