Can I install the JDK to run PHP and Java at the same time?
Recently, hivemind.co.uk's friends published an article on PHP to show you how to use the Php-java bridge. 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.
Does the above describe installing the JDK to run PHP and Java at the same time? , including the aspects of the content, want to be interested in PHP tutorial friends helpful.