Install the JDK to run both PHP and Java at the same time?

Source: Internet
Author: User
Tags php and php code

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 to create a more powerful web solution).

This title more accurately describes what the article is going to tell you. But I'm skeptical about the proposal to create a Autoexec.bat file to set the path of PHP and the path to Java classes mentioned in the article. This is true from a technical point of view, and you can do so.

In addition, there is a suggestion to create the JDK and then run it. This setting can be very convenient. (because it is windows-based, so it does not need to be reset) 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, look at this article.

Here the PHP code is so simple and straightforward. This is not OOP. But you can use it in Java in a lot of oop. Here I am prompted by the author: If you want, PHP can also provide the same OOP-based functionality. Finally, I'd like to note that if you consider using Java in PHP, you can continue reading the article and look at the examples it provides.



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.