Re: Help with php server and sockets
| From: | Darren Whitlen | Date: | Thu, 24 May 2007 06:52:42 +0000 |
| Subject: | Re: Help with php server and sockets | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255493@lists.php.net to get a copy of this message | ||
Adz07 wrote:
i want to set up a php server that can communicate with a client (CLI PHP Script). I can setup the server socket fine. What i need to know is whether it is possible for the client to call a function in the servers php code and the server return the data ready for the client to process?? To start, if anyone could tell me how to use a socket connection from a CLI client to a CLI server to retreive an array (it'll do for now :) ....if its even possible that is! Sorry if thats not the best explanation!Take a look at XML-RPC (www.xmlrpc.com). As Robert mentions, it is a standard protocol for communicating between languages/servers. Altho very bloated IMO, it should work fine within a CLI app. Darren