note 10563 rejected and deleted from ftp_fput by zak
| From: | zak@php.net | Date: | Wed, 10 Jan 2001 19:59:50 +0000 |
| Subject: | note 10563 rejected and deleted from ftp_fput by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9570@lists.php.net to get a copy of this message | ||
The function crashes, if the filepointer is already at the end of file (feof is true). To send the
whole file use the function rewind(), this sets the filepointer to 0. This also prevents the error.
Joerg
More PHP: www.php.comzept.de (in german)