roy17 wrote:Right now, I know how to create a simple Java applet and embed it into the PHP using a HTML tag applet.
However, I realize that it is a client side only, as after I disconnect my internet connection, the applet is still working.
So, what's wrong with that? You want to use Java (JSP?) on the serverside? Then why do you need PHP?
roy17 wrote:I would like to create some simple text display. Lets say I press a button then a html text is displayed below. However I need to use java for it.
Why do you need Java for that? You can just use a form in HTML, or some Javascript with AJAX techniques.
roy17 wrote:I already attempted using AJAX and it is working perfectly, however it is not the same with my current requirement where I need php and java working together.
Okay, assuming that you do indeed need Java: what are you using Java for? What are you using PHP for? How is PHP and Java supposed to work together, according to your requirements? Even more importantly: what is the bigger picture of what you are trying to do?
roy17 wrote:The ones I find say that php client and java server which doesn't make sense because php is a server scripting language.
It makes sense if the PHP script acts as a client in that context, e.g., the PHP script provides some service that requires say, intensive computation that is done on another server. The PHP script then connects as a client to that server and queries for the desired result done by a Java program, then processes the result and sends it to the end-user.