update : 2015.11.03
php.shukuma.com검색:
|
feof(PHP 4, PHP 5, PHP 7) feof — Tests for end-of-file on a file pointer 설명
bool feof
( resource
$handle
)Tests for end-of-file on a file pointer. 반환값
Returns 주의Warning
If a connection opened by fsockopen() wasn't closed by the server, feof() will hang. To workaround this, see below example: Example #1 Handling timeouts with feof()
<?php Warning
If the passed file pointer is not valid you may get an infinite loop, because
feof() fails to return Example #2 feof() example with an invalid file pointer
<?php |