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

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

  • Related Article

    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.