RE: [PHP] Communicating with remote server
| From: | Webmaster | Date: | Mon, 17 Nov 2003 22:31:08 +0000 |
| Subject: | RE: [PHP] Communicating with remote server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170026@lists.php.net to get a copy of this message | ||
Yes, the remote server does have PHP. This sounds like a good idea. Is
it relatively easy to do? I have never worked with HTTP protocol
functions for this. Do you know of a tutorial I could look through to
learn a little of this?
Thanks,
Matt
-----Original Message-----
From: Marek Kilimajer [mailto:kilimajer@webglobe.sk]
Sent: Monday, November 17, 2003 5:26 PM
To: Matt Palermo
Cc: php-general@lists.php.net
Subject: Re: [PHP] Communicating with remote server
Matt Palermo wrote:
> I am writing a desktop application using PHP-GTK. I would like this
program
> to be able to connect to a remote server, call some functions that I
> specify, and return the right information (most likely from a MySQL
db). I
> have access to the server, so I can create any and all functions that
I
> want, but I don't know how to connect to the remote server page and
get all
> the results. I am new to cross-server comunication programming, so if
> anyone knows of a very detailed and easy to learn tutorial please send
me
> the link. I would appreciate any help you are willing to offer.
>
> Thanks,
>
> Matt
>
>
If the remote server has webserver with php, you can use http protocol
to call functions and get the results. You can use one of the http
classes that can make both get and post requests in your GTK-PHP app, to
return information from the server I would use XML, but you can use
other format - csv, or even php code that you will eval()
Keep security in mind!
Marek