How to access to external files from Phar archives? How to access to external files from Phar archives? php php

How to access to external files from Phar archives?


Have you tried to use an internal phar uri as a mounting point like:

 Phar::mount('phar://sites/site.php', __DIR__.'/../sites/site.php');

Also I don't know if the problem could be due the sites subdir, did you try:

 Phar::mount('site.php', __DIR__.'/../sites/site.php');