Jump to content


PHP Zip Extract to client machine

php pdo mysql

  • Please log in to reply
1 reply to this topic

#1 shades

  • Members
  • PipPipPip
  • Advanced Member
  • 40 posts

Posted 07 September 2017 - 04:19 PM



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.



#2 Sepodati

  • Members
  • PipPipPip
  • Advanced Member
  • 234 posts
  • LocationCaro, MI

Posted 07 September 2017 - 04:26 PM

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.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users