Re: php client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 15, 2008 at 11:07 AM, Stephen <stephen-d@xxxxxxxxxx> wrote:

> idan72 wrote:
>
>> Hi,
>>
>> I am new to PHP.
>> I want to write a web client in PHP that will data to a server written in
>> Java.
>> I want that the client will send an object to the server.
>
> Don't know if that would be easy in PHP. I presume you are using RMI??

>
>>
>> What is the best way to do that?
>> Where can I find an example for doing that ?
>>
>>
> JAVA is on the client side. That is, it runs in the users browser.
>

This is not necessarily true. There are Java Applets that are run on the
client. But there are also Java Server Pages (JSP) and Java is designed to
run on servers as well as clients. Javascript (which is totally different!)
always runs on the client.

You could even write a web (or any) server in Java, because it supports
sockets, RMI and even CORBA ;). Ever heard of Java IEEE?



>
> PHP is on the server side, and there is no direct interaction between PHP
> and the user.


You can also write applications in PHP that you can run on a client
(although you would need PHP installed). There are even gui frameworks for
PHP ( http://gtk.php.net/ ).


>
> It seems from what you write that you need a "form" in a web page, and a
> PHP script to process the data the user enters and submits from the form.
> You may not need JAVA at all.
>
> If this is what you want to go, Google, "PHP forms"
>
> Stephen
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Tim-Hinnerk Heuer

http://www.ihostnz.com

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux