Jump to content

Java Applet with PHP and Apache


jeffbruce

Recommended Posts

Hey everybody,

 

I've developed a Java applet which (during its execution on the client side) tries to access files on a web server. This web server runs Apache, so I've been told that by using PHP the client can send file requests to Apache on this web server, and Apache will try to fulfill the client's request.

 

How do I use PHP to carry out this process? Here's what I'm thinking:

 

The client visits a website (call it http://www.awebsite.com/joe_nameth.php), this runs some PHP code to launch the Java applet on the client side. But, during the applet's execution, the client makes file requests. Do I embed some PHP code in the Java code in order to deal with the accessing of files from a web server? I'm completely new to this endeavor.

Link to comment
https://forums.phpfreaks.com/topic/117575-java-applet-with-php-and-apache/
Share on other sites

I'm traditionally a Java developer and pretty new to PHP so please forgive me if this reply is incorrect.  I would think that you would want to do it the other way around.  You would have some PHP scripts that make calls to Java objects.  I have used the PHP Java Bridge to do this and it works pretty well.  Check out the PHP Java Bridge at:

 

http://php-java-bridge.sourceforge.net/doc/

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.