简体   繁体   中英

why should I use java with php

I came across open-source project PHP/javaBridge for connecting php application with java. But why should I use java with php? Is there any specific advantage for this? Thanks, Robert

主要好处是,当您已经有很多现有的Java库,不想在PHP中重新编码时,却想在其中使用PHP构建新的应用程序

您可能要使用Java中的库。

You wanna find the right tool for the job, not the right job for the tool. I guess you just shouldn't use it if you have to ask this question.

That said, there are a few good cases where you'll use Java with PHP, most of the times the big advantage is that the Java application keeps running on the background (as a daemon) and it's more powerful.

Do you really need to use Java? If so, go for it. Or are you just looking for new ways to do things? If so, don't bother. PHP is powerful enough to do what you need. So is Java. Pick one, and stick with it...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM