Re: PHP talk to a running Java program on a Linux platform..?
| From: | Darrell Brogdon | Date: | Tue, 18 Jul 2000 18:03:10 +0000 |
| Subject: | Re: PHP talk to a running Java program on a Linux platform..? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7081@lists.php.net to get a copy of this message | ||
I've never used PHP with Java but from what I understand about it you
can access Java methods from PHP. If you have the Java source you could
add a method that PHP would access that will produce the same results as
connecting through a socket.
The question I have here is would there be an advantage to doing this?
Which one would be more expensive?
As I said, I've never used PHP to access a Java method so I don't have
first-hand exposure to performance.
-D
Christian Calloway wrote:
>
> Hey everyone,
>
> I've run into a bit of a programming quandry, and need some advise on how I
> should proceed. I have a java server program running on the server which
> acts as a countdown clock, it counts from N time to 0 (it does some other
> stuff too, but thats not important). This program acts as a server, in that
> everytime a socket connection is made to the port its monitoring, it will
> return the amount of time left to the client, and close the connection. In
> my case, I want to show the amount of time remaining in my browser, so I
> have a php script handle opening up a client socket to the server program,
> and storing all the necessary information, and then returning that to my
> browser. It works fine, but to me it seems to make little sence to have a
> php script, which is physically sitting right next to my Java program on the
> server, to go through the work of establishing a client-socket session. Is
> there another more efficient and senseable way to have my PHP script talk to
> a background running Java program?Thanks everyone,
>
> Christian Calloway
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net