I\'m writing a PHP script that downloads a series of generated files (using wget) into a directory, and then zips then up, using the zip command.>
wget
zip
I have also get it worked by using this command
exec('cd '.$_SERVER['DOCUMENT_ROOT'].' && zip -r com.zip "./"');