PHP到Java的通信 [英] PHP to Java communication

查看:96
本文介绍了PHP到Java的通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用PHP与使用共享数据库进行通信的java进行通信,请帮我提供示例代码或逻辑。

I want to use PHP to communicate with a java using shared database to communicate, please help me with sample code or logic.

谢谢。

编辑:

感谢您的建议,是的,我将同时使用php和java连接到相同的数据库。

I appreciate your suggestions, Yes I will be using both php and java to connect to thesame database.

我面临的问题是我想知道,我是否必须创建将用于通信的通用命令?我正在努力避免使用脏代码并确保良好的编程技术。

The issue I'm faced with is that I want to know, do I have to create generic command that will be used for the communication? I'm trying to avoid dirty codes and ensure good programming techniques.

推荐答案

Facebook开发节俭,可以完全满足您的需求。

Facebook developed Thrift for doing exactly what you are looking for.

希望这有助于
丹尼尔

Hope this helps Daniel

这篇关于PHP到Java的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆