Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #6642

Re: Using PHP and JAVA applets together

From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.php
Subject Re: Using PHP and JAVA applets together
Date 2012-07-23 10:46 +0000
Organization A noiseless patient Spider
Message-ID <juja2h$ar3$1@dont-email.me> (permalink)
References <a16b5256-638a-4b9d-a6d7-045347ff081c@googlegroups.com>

Show all headers | View raw


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

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Using PHP and JAVA applets together "K.J.Williams" <lord_kjwilliams@yahoo.com> - 2012-07-20 20:09 -0700
  Re: Using PHP and JAVA applets together Michael Vilain <vilain@NOspamcop.net> - 2012-07-21 00:29 -0700
  Re: Using PHP and JAVA applets together "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-07-23 08:36 +0200
  Re: Using PHP and JAVA applets together Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-07-23 12:08 +0200
  Re: Using PHP and JAVA applets together Denis McMahon <denismfmcmahon@gmail.com> - 2012-07-23 10:46 +0000

csiph-web