Can I include a file from a zip file in PHP? For example consider I have a zip file – test.zip and test.zip contains a file by the name a.php. Now, what I would like to do is something like below,
include “test.zip/a.php”;
Is this possible? If it is can anyone provide me a code snippet?? If not, id there any other alternative to do this??
To go further, you may be interested in PHAR archive, which basically a Zip archive.
Edit:
With a cache strategy: