aximbigfan Posted May 1, 2008 Share Posted May 1, 2008 I have a PHP database application, and one thing is that the client side has to communicate with the server side over HTTP. I have a code layed out, and it uses fopen and fputs and fgets to open, send, and recive data. I was reading over the PHP docs, and I found this: http://www.php.net/manual/en/function.http-request.php Is there a better way of TXing and RXing data accross HTTP with PHP? Thanks, Chris Link to comment https://forums.phpfreaks.com/topic/103677-http-communication-between-scripts/ Share on other sites More sharing options...
rhodesa Posted May 1, 2008 Share Posted May 1, 2008 Well, if you keep everything in a database, both the client and server can read/write to there. Normally for sending data over HTTP is with XML over HTTP. So the sender uses cURL to POST an XML file to the receiver. Link to comment https://forums.phpfreaks.com/topic/103677-http-communication-between-scripts/#findComment-530978 Share on other sites More sharing options...
aximbigfan Posted May 1, 2008 Author Share Posted May 1, 2008 The database is a custom coded deal. The values are stored in flat files, but presented in an orderly manor from to the client. I will look at XML. Thanks! Chris Link to comment https://forums.phpfreaks.com/topic/103677-http-communication-between-scripts/#findComment-530981 Share on other sites More sharing options...
rhodesa Posted May 1, 2008 Share Posted May 1, 2008 If the flat files are on separate servers, how are you using fputs to write to the files? Link to comment https://forums.phpfreaks.com/topic/103677-http-communication-between-scripts/#findComment-530985 Share on other sites More sharing options...
aximbigfan Posted May 2, 2008 Author Share Posted May 2, 2008 There is a script on the other server that parses the DB files.. Chris Link to comment https://forums.phpfreaks.com/topic/103677-http-communication-between-scripts/#findComment-531379 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.