FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Using PHP and JAVA applets together
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Using PHP and JAVA applets together [message #178715 is a reply to message #178706] Mon, 23 July 2012 10:46 Go to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Fri, 20 Jul 2012 20:09:57 -0700, K.J.Williams wrote:

> I wanted to know if you can design a method for a JAVA applet to send
> data to a PHP server and vice versa (PHP server sends data to the JAVA
> applet) on the internet, so that either program does something different
> based on what the data is?

A php process on a server will process whatever requests are passed to it.

You will need to make the java applet send suitable requests (probably
using http get or post protocols), design your php process to process
those requests and return relevant data, and then have your java applet
process the responses and do stuff accordingly.

You might want to make the content of your responses some form of xml,
json, plain text, or some serialised or ascii encoded data format, rather
than a web page. This might involve using php functions to ensure that
the web server under which the php process is operating sends the data
with the right http protocol headers.

Rgds

Denis McMahon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Errors Related to Same Path Through Real and Symbolic Link References
Next Topic: Draw some simple rectangles?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 08 18:32:11 GMT 2024

Total time taken to generate the page: 0.04323 seconds