I am trying to extract a zip file on server with the help of PHP. I tried the following code but it isn't working: exec('unzip my_zip_file.zip'); PHP: Please help
You need to confirm that PHP and/or your web server has permission to run the unzip command and that the command is actually available. Also, from the PHP manual:
Thanks for the reply. Will check this with my host. I somehow managed to extract the zip file via SSH using the code unzip my_zip_file.zip. Everything in that archive was extracted but I have another problem now. The extracted files have permissions set to 700 and I have to set the permission of each and every file manually. Is there any command that can change the permission of all files including files in sub directories to 755 via SSH command line? I tried chmod 755 * but it changed the permissions of the root files not all the files located in sub directories.
Never mind; I got it working. To CHMOD all files and folders in current working directory and each subsequent sub-directory and file i used chmod -R 755 *