Originally Posted by anarchoi
Thanks for the answer guys.
Just one question: does running the shell_exec "unzip" command actually extract temporary files on my server ? Because like i explained i am already very limited in drive space and i can't afford to extract files just to get the names (i already have 500GB of zip files).
Also, will it require significally more CPU usage than the code i was originally using ?
with the '-l' switch won't extract anything. will just list files inside your zip archive. CPU usage should be the same. if anything it will actually take less CPU cycles since sh (most servers use sh shell) is way more efficient than PHP in that regard