duanshan7261 2012-07-12 00:13
浏览 32
已采纳

在PHP中嵌入Java [重复]

Possible Duplicate:
Call Java method from PHP5

For a time now, I've been searching on how to embed java in php but found questions that give possible solutions and others that say it's impossible.

I happen to have some java code working and I need it working in a php application, I tried making the same exact code in php language (of course, in php) but it doesn't work, so, what I want to know is:

How can I run my java functions using php?

Thank you all.

  • 写回答

2条回答 默认 最新

  • douping7975 2012-07-12 00:34
    关注

    You should ask yourself what the right technology, architecture and programming language for your actual problem is and how it relates to your overall strategy especially regarding skills. You should use the "right" tools for a given problem while trying to limit your skills to a set of tools that are suitable to solve a large scale of your problems. If you need PHP for certain web features in your case you could investigate calling Java server functions e.g. via REST or other communication technologies.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)
编辑
预览

报告相同问题?

悬赏问题

  • ¥15 sql server2008r2索引超出了数组界限
  • ¥15 MATLAB图片转灰度格式问题
  • ¥15 把h5作品链接复制到自己的账号里
  • ¥15 ensp抓包实验配置
  • ¥15 强化学习算法、MRO
  • ¥15 想要学习一门技术来保证以后能够吃上碗饭,该学什么好
  • ¥50 Verilog硬件开发,射频分析求解答
  • ¥20 matlab绘冲床平面连杆机构图和仿真,求帮助
  • ¥15 为什么树莓派5b显示禁止连接
  • ¥15 请专家处理报错!基于深度学习的车型分类问题:数据集为包含 10 种车型的图像数据集,分为训练集、验证集和测试集。
手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部