innova
03-04-2005, 04:04 PM
Hi,
I want to send the contents of a textfile from one machine to another. I was thinking a way to do this would be to get_file_contents, then serialize() them, and send the serialized bytes over the net to a socket server on the other side, where it would be unserialize(d).
I wanted to do something entirely in PHP, not using any external protocols. I think by using sockets it can be done.
What I want to know is.. are there any other approaches I should be considering? What alternatives are there?
I want to send the contents of a textfile from one machine to another. I was thinking a way to do this would be to get_file_contents, then serialize() them, and send the serialized bytes over the net to a socket server on the other side, where it would be unserialize(d).
I wanted to do something entirely in PHP, not using any external protocols. I think by using sockets it can be done.
What I want to know is.. are there any other approaches I should be considering? What alternatives are there?
