can you not open the file in binary mode and then transfer it as you would
with ASCII?

"Kevin Stone" <[EMAIL PROTECTED]> wrote in message
> Okay enough answering questions this week, now I have a question to ask.
> I have a situation where two web servers need to share files with one
> another.  FTP is not an option.  So I am resorting to HTTP socket
> connection.  I am able to open the connection (using Rasmus's PostToHost
> function) to PHP scripts running on both servers and send structured
> back and forth.  This was easy.  The queries can trigger actions so that I
> can communicate seamlessly and do work.  But I cannot for the life of me
> figure out how to send whole files (mostly image files).  There's
> more to it than just sending the ASCII conversion.
> I really don't have any meaningful code to show you.  The code is all
> standard anyway so if you know what I'm talking about then you have
> coded it yourself at one point or another.  Are there any tutorials or
> examples out there that will show me how to send files using fsocketopen()
> and POST method?
> Much thanks!
> Kevin Stone
> Helpelf, Inc.

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to