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.

Community
  • 1
  • 1
Mohammadreza
  • 31
  • 1
  • 2

2 Answers2

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.
datasage
  • 19,153
  • 2
  • 48
  • 54
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.

Yanick Rochon
  • 51,409
  • 25
  • 133
  • 214