Can I install JDK to run PHP and Java at the same time?

Source: Internet
Author: User
: 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.

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.