Hi guys,
I've put together a website in PHP and one of the things it has to do is take a load of user-submitted information (so far so good) convert it to XML on the server (also fine) then submit the XML to another server from which a response will be received and then the response relayed to the original user.
I'm fine with the client-server stuff, but how do you go about sending information server-server using PHP in the middle of an application?
Any help would be much appreciated! Cheers!
Sam
Server to server communication
Moderator: General Moderators
POSTing data
Just had a look through that information on using sockets in PHP - I have been told that the data from the user should be collected by my server and parsed into XML. Then an SSL connection should be set up between my server and the other server so my server can POST the XML.
Will sending the data via the socket connection have the same effect as an HTTP POST METHOD? I don't want to spend loads of time doing it this way unless I'm quite confident that the other server will be able to pick up the data I send and respond accordingly.
Cheers!
Sam
Will sending the data via the socket connection have the same effect as an HTTP POST METHOD? I don't want to spend loads of time doing it this way unless I'm quite confident that the other server will be able to pick up the data I send and respond accordingly.
Cheers!
Sam