By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,024 Members | 924 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,024 IT Pros & Developers. It's quick & easy.

php exec problem with unzip

P: 26
I want to upload a zip file and then extract/unzip it. I am accomplishing this with php exec command. I am calling unzip from php exec command within a php script and it is not extracting files. why?
echo exec('unzip');

i checked apache logs and it says

checkdir error: cannot create xtheme-1-1
unable to process xtheme-1-1/comments.php.
checkdir error: cannot create xtheme-1-1
unable to process xtheme-1-1/dbx.css.
It works perfectly fine when i unzip using SSH command line..
how to fix this problem.
Oct 17 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 1,584
Make sure you set the file permissions of that folder to 777 or the lowest allowable for the script to work.
Oct 17 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.