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?
The easiest way is using filesystem functions with url wrappers:
$request = fopen('http://server/function.php?f=fname&arg1=foo','r');
if(!$request) alert_user('Could not connect!');
and now read the response and parse it. (I just realized you can use serialize and unserialize functions, that will be realy easy for you)
But this works only if you don't send large datasets to the server, then you need to use post mothod, really easy with an http class, check out this one: http://www.phpclasses.org/browse.html/package/3.html
There is an example for the post method.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php