If you're asking which is faster, PHP or Java, it's a very difficult question and I doubt anyone will give you a concrete answer.
I'd suggest writing the application in a much faster compiled language, c++ for example. "C.F. Scheidecker Antunes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello all, > > I need to have a web application to call an external app that needs to > execute on the background. (It is an *NIX server) > > The app that is being called will do a lenghty work but will be called > by a php script through the web server. > An user will log in, request a computation, the script will call an > external app which will run on the > background. Once the job is completed, a notification will be sent to > the user which will log in again and check the results. > The external app performs a data mining computation on the SQL server to > produce results which will then be written to an SQL table. > > My question is this: > > Is it better to write the external app in PHP or Java? > If I write in PHP then I have to have a way to make the PHP not bound to > time limitations as the operation might take a while. > If I write it in Java I won't have this concern. However, I am concerned > with speed and overhead. > Which one would put a higher load to the processor, a PHP app or a Java > one? > Which one will take longer? > > Also, there might be more than 20 of these threads running on the server > at the same time, hence my concern on which language the app should be > writen. > > Does anyone has experience with such a scenario? > > The input is much apreciated. > > Thanks in advance, > > C.F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php