简体   繁体   中英

PHP, Java Applet communication

Here's what I would like to do.

I have a PHP file in my server where I would like to call java applet. The applet function will send a get request to read a page from third party server. Now I want page read from applet function to be sent to PHP script. To simply put ,i want the return value of the applet request function in a PHP variable. Is it possible to do?

I want to do this way because I already have the code to parse the page information in PHP, so I don't want to rewrite that in java again.

I wanted the Java applet because the request has to be sent using the client information like IP. So I don't want to use proxies.

Note: I am not trying to hack anyone's server. I am not a advanced programmer of either Java or PHP. Please reply me in a descriptive manner possibly with pseudo code.

I already have the code to parse the page information in PHP, so I don't want to rewrite that in java again.

PHP should be able to get that page more easily than can a Java applet. The applet would need to be trusted or in communication with a site that uses the 'cross-domain resources' file that explicitly allows hot-linking.

Searches on 'php proxie' seemed to spill out around 7.32 million hits. I'd start there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM