Canman2005 Posted August 20, 2007 Share Posted August 20, 2007 Hi all Im using the following to unzip files on the server <?php system('unzip filename.zip'); ?> How can you define the target of where files should be extracted? Any help would be ace Thanks Ed Quote Link to comment Share on other sites More sharing options...
trq Posted August 20, 2007 Share Posted August 20, 2007 <?php system('unzip -d dirtounzipto filename.zip'); ?> Quote Link to comment Share on other sites More sharing options...
Canman2005 Posted August 20, 2007 Author Share Posted August 20, 2007 Thanks I tried <?php $upload_folder = ../files/904/ $upload_files = ../files/904/904images.zip system('unzip -d $upload_folder $upload_files'); ?> But that doesnt seem to do anything when I run the page. Any ideas? Thanks Ed Quote Link to comment Share on other sites More sharing options...
Canman2005 Posted August 20, 2007 Author Share Posted August 20, 2007 Thanks I tried <?php $upload_folder = '../files/904/'; $upload_files = '../files/904/904images.zip'; system('unzip -d $upload_folder $upload_files'); ?> But that doesnt seem to do anything when I run the page. Any ideas? Thanks Ed Quote Link to comment Share on other sites More sharing options...
trq Posted August 20, 2007 Share Posted August 20, 2007 <?php $upload_folder = '../files/904/'; $upload_files = '../files/904/904images.zip'; system("unzip -d $upload_folder $upload_files"); ?> Quote Link to comment Share on other sites More sharing options...
Canman2005 Posted August 20, 2007 Author Share Posted August 20, 2007 Brill Thanks so much Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.