1

Possible Duplicate:
Php/Java Integration

I have a java app. It has some function. How can I call It's function in PHP? I need step by step tutorial about it. I need solution except Java/PHP Bridge and Thrift.

3
  • For Java and php communication you need web services. Commented Jun 27, 2011 at 7:59
  • did you look at stackoverflow.com/questions/1045845/… ? Commented Jun 27, 2011 at 7:59
  • @Gordon: sorry - copy/paste too quickly. Thanks for pointing out the right link Commented Jun 27, 2011 at 8:13

2 Answers 2

0

These are your options:

  1. PHP/Java bridge allows you to pull in java classes into PHP code. Works relatively well, but has a bit of a learning curve.
  2. Calling the java app through exec or system. Each system remains independent, but you can only transfer the output into PHP.
  3. Use Quercus to run your PHP code.
Sign up to request clarification or add additional context in comments.

Comments

0

You may use sockets to communicate between two different applications (regardless of technologies)

PHP take a look at some examples from the PHP Manual

JAVA Use a ServerSocket for incoming connections.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.