> > Right, but when you are doing network work like this you should be using
> > fsockopen() directly which does have timeout support. readfile() with a
> > url argument just does a simple fsockopen anyway and issues a GET request.
> > Trivial to do yourself using fsockopen() and fputs() and this way you can
> > manage the timeouts yourself. Introducing a language-level timeout
> > feature is complicated.
>
> I want to *write* to the connection to do a GET request? That sort of makes
> sense, but how do I get what the remote server returned after I issued the
> request?
fputs() to write and fgets() to read. Type "PostToHost" into Google or
something and you should turn up a function I wrote years ago that does
something like this. It does a POST request which is a bit more complex.
-Rasmus
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]