Integrating Java with PHP without recompiling
Posted: Wed Oct 27, 2004 4:13 pm
I am currently in the process of migrating an application from windows to linux.
My boss wrote the app originally and uses a java api written by some one else. It only works becuase the windows version of php he has has support for running java inside the cole like so:
However, he also insists on going strictly RedHat Network all they way on the server. Becuase RHN's PHP package does not have java compiled in, it doesnt work.
Is there anyway to run this java app without compiling my own PHP?
thanks
j
My boss wrote the app originally and uses a java api written by some one else. It only works becuase the windows version of php he has has support for running java inside the cole like so:
Code: Select all
<?php
$myObject = new Java("the.class.we.want.to.run");
$myObject->doParse($_GET['var1'], $_GET['var2']);
if($myObject->isVerified())
{
do_some_stuff();
}
?>Is there anyway to run this java app without compiling my own PHP?
thanks
j