Install JDK to run PHP and Java at the same time ?. The original question of this article is HowtoBridgePHPandJavaforPowerfulWebSolutions (how to associate PHP with Java to create a more powerful Web solution ). The original title of this article is more accurate: 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.
Connecting to Bridge PHP and Java for Powerful Web Solutions (how to associate PHP with Java to create more Powerful Web Solutions ). This title is more accurate...