LMSouq
php-dev Open

Unzip a file with php

BO
BostonBB
1 month ago
3 views
Problem Description
I want to unzip a file and this works fine system('unzip File.zip'); But I need to pass in the file name through the URL and can not get it to work, this is what I have. $master = $_GET["master"]; system('unzip $master.zip'); What am I missing? I know it has to be something small and stupid I am overlooking. Thank you,

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base