The original title of this article is "How to Bridge PHP and Java for powerful web Solutions" (How PHP and Java are linked together to create a more powerful web solution).
This title is a more accurate description of what the article will tell you. But I suspect that the article mentions the creation of the Autoexec.bat file in order to set the path of PHP and the path of the Java class. Although this is the right thing to do from a technical point of view, you can do so.
In addition, there is a suggestion to create the JDK and run it. This setting is convenient. (because it's windows-based, so you don't need to restart) Once you have the JDK installed, you can quickly create a "Hello World" class and use it in PHP. Anyway, for those of you who want to know how to run PHP and Java at the same time, take a look at this post.
Here the PHP code is so simple and straightforward. This is not OOP. But you can apply it to oop in a lot of java. Here I suggest the author: PHP can provide the same OOP-based functionality if you want. Finally, I would like to explain that if you consider using Java in PHP, you can continue reading the article and look at the examples it provides.
http://www.bkjia.com/PHPjc/364152.html www.bkjia.com true http://www.bkjia.com/PHPjc/364152.html techarticle The original title of this article is "How to Bridge PHP and Java for powerful web Solutions" (How PHP and Java are linked together to create a more powerful web solution). This headline is more accurate ...