In Java, can I use the -cpto to define a category library? Is there any similar function in theclassjava-cpexample.zip TheClassPHP? My final goal is to use Java ProcessBuilder to run the PHP file in the zip file. For more information, click http... in Java, you can use the -cppattern library, such as running TheClass in example.zip.
Java-cp example.zip TheClass
Is there a similar function in PHP?
My final goal is to use Java ProcessBuilder to run the PHP file in the zip file,
For more information, click
Https://segmentfault.com/q/1010000004946...
Reply content:
In Java, you can use the-cpto specify the class library, such as running TheClass in example.zip.
Java-cp example.zip TheClass
Is there a similar function in PHP?
My final goal is to use Java ProcessBuilder to run the PHP file in the zip file,
For more information, click
Https://segmentfault.com/q/1010000004946...
$ Phar2 = new Phar ('/yourpath/test. phar '); include ('phar: // test. phar/subdir/test2.php '); test2 (); include ('phar: // test. phar '); test1 ();