: Does this article mainly introduce how to install JDK to run PHP and Java at the same time ?, If you are interested in the PHP Tutorial, refer. Can I install JDK to run PHP and Java at the same time?
Recently, friends of hivemind. co. uk published an article about php to show you how to use the PHP-java bridge. The original question of this article is "How to Bridge PHP and Java for Powerful Web Solutions" (How to associate PHP with Java to create a more Powerful Web solution ).
This title more accurately describes the content of the article. However, I am skeptical about the suggestion to create the autoexec. bat file mentioned in the article to set the PHP path and Java class path. Although this operation is correct from a technical point of view, you can perform this operation.
In addition, it is recommended to create and run JDK. This configuration is very convenient. (Because it is based on Windows, it does not need to be restarted) once you install JDK, you can quickly create a "hello world" class and use it in PHP. Anyone who wants to know how to run both PHP and Java can read this article.
The PHP code here is so simple and straightforward. This is not OOP. However, you can use OOP extensively in Java. Here I will prompt the Author: If you need it, PHP can also provide the same OOP-based functions. Finally, I would like to explain that if you are considering using Java in PHP, you can continue to read this article and carefully check the examples it provides.
The above introduces how to install JDK to run PHP and Java at the same time ?, Including some content, hope to be helpful to friends who are interested in PHP tutorials.