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
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/

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.