Jump to content
Sign in to follow this  
shades

PHP Zip Extract to client machine

Recommended Posts

Hi,

 

I am running the PHP server on my laptop. So, far I am able to create a zip file and extract too, but when i extract i gave path to my c:/ folder.The issue is it extracts to the C:/ folder on my laptop where the php server is running and if a user extracts from a different machine I don't think it will extract to the client C:/folder or does it ? or is there any other way to specify the client path ?

 

Also client can use linux system then i cannot use this path. So, I would like to know is there any way to achieve this ?

 

Note: I have multiple CSV files which i have zipped and It is a must that I have to extract and provide the files to the user.

 

Thanks.

Share this post


Link to post
Share on other sites

The server can't unzip files on the client. That doesn't make any sense. You could offer them up for download. Then once downloaded, the user can unzip them on their own (client) machine.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.