在java里,可以通过-cp指定类库,比如我要运行example.zip里的theclass
java -cp example.zip TheClass
PHP里有没有类似功能?
我的最终目标是用Java的ProcessBuilder跑在zip文件里的php文件,
更多信息请点击
https://segmentfault.com/q/1010000004946...
回复内容:
在java里,可以通过-cp指定类库,比如我要运行example.zip里的theclass
立即学习“PHP免费学习笔记(深入)”;
java -cp example.zip TheClass
PHP里有没有类似功能?
我的最终目标是用Java的ProcessBuilder跑在zip文件里的php文件,
更多信息请点击
https://segmentfault.com/q/1010000004946...
$phar2 = new Phar('/yourpath/test.phar');
include('phar://test.phar/subdir/test2.php');
test2();
include('phar://test.phar');
test1();











