java -cp example.zip theclass
php里有没有类似功能?
我的最终目标是用java的processbuilder跑在zip文件里的php文件,
更多信息请点击
https://segmentfault.com/q/1010000004946...
回复内容: 在java里,可以通过-cp指定类库,比如我要运行example.zip里的theclass
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();
