Re: socket_set_blocking()
| From: | @ Edwin | Date: | Thu, 12 Dec 2002 17:49:06 +0000 |
| Subject: | Re: socket_set_blocking() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128043@lists.php.net to get a copy of this message | ||
Hello,
<poliva@cox.net> wrote:
> I was not able to get php's ftp functions working for me, they were
uploading zero byte files, so I am now attempting to use fsockopen to
accomplish the task.
>
> I found this script:
http://www.phpbuilder.com/mail/php-general/2001102/1333.php
>
> It uses the function: socket_set_blocking(), and php.net says that this is
an alias for stream_set_blocking(). What does blocking mode mean? I am not
familiar with this concept, can someone explain.
>
I think it's explained here. (Not sure if it'll help though...)
http://www.php.net/manual/en/function.stream-set-blocking.php
> As for the issue of socket_set_blocking() being an alias for
stream_set_blocking(), why would I not just use stream_set_blocking?
>
The reason is also found above. (Hint: Because it may not be available in
the version of php you are using.)
- E