Tabor.Carlton Posted October 11, 2008 Share Posted October 11, 2008 I'm trying to do something I've never done here, and don't know where to begin. I am building an application that communicates with simple xml calls back and forth to a remote server over TCP, and I've made the assumption that PHP socket functions will accomplish this. When I log onto the remote IP address through fsockopen I get the information I'm expecting, but I need to write some information back in xml format, but nothing I'm doing is working. So far I've tried putting the incoming data in an array (which works), and then I use the info I need out of that and use fwrite to send data back. I am not getting anything in return and just wonder if I am even on the right track. Any help is GREATLY appreciated. Thanks, Tabor Carlton Link to comment https://forums.phpfreaks.com/topic/128037-php-tcp-socket-application-dont-know-where-to-start/ Share on other sites More sharing options...
AV1611 Posted October 11, 2008 Share Posted October 11, 2008 I've done a similar project before. You REALLY need the spec for the device to tell it what it wants to hear. I know in my case I had to do some binary/hex junk. Are you sure it ONLY requires xml? Do you have the correct xml? Link to comment https://forums.phpfreaks.com/topic/128037-php-tcp-socket-application-dont-know-where-to-start/#findComment-663039 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.