Is PHP similar to-cp in java?

Source: Internet
Author: User
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 ();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.