English 中文(简体)
快速/最高效地检查并读出用于瓦 Java数据库变化的PHP文档?
原标题:Easiest/most efficient way to constantly check & read PHP file for database changes in Java?

我使用MySQL数据库在PHP中有一个简单的友好系统。 我也有 Java申请,用户可以通过公共卫生和社会福利部系统向某个人发出朋友要求,接收人可以接受。 当用户发出朋友要求时,PHP将发送人和接收人用户姓名写进数据库的表格中,现在为了检查朋友的要求,接收人必须人工更新PHP文件(该文档将发送人姓名)。

我用HttpConnection手工检查PHP文档并装载产出,但我很想知道,是否有办法不断进行污染或保持一种能够读到PHP档案中最新信息的积极联系,这样,一旦供应商发出朋友要求,就能够自动通知接收人,而不是每第二次重载档案(这并不使用大量的带宽)。

感谢。

问题回答

你们可以利用美国宇宙航空研究开发机构,而不是用户进行硬性复习。

Other option would be using a webworker: https://developer.mozilla.org/en-US/docs/DOM/Using_web_workers?redirectlocale=en-US&redirectslug=Using_web_workers

tkx





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签