Sami Sami - 1 year ago 174
PHP Question

PHP - file_get_contents() of a file inside a subdirectory in a zip file

I have a

file with multiple subdirectories and files inside them. How to use
to get the content of a file inside one of the subdirectories of the

Answer Source

If you've got the Zip extension installed, it should have registered the zip:// compression wrapper. Try the following:

$result = file_get_contents('zip://');
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download