update : 2015.11.03
php.shukuma.com검색:
|
fpassthru(PHP 4, PHP 5, PHP 7) fpassthru — Output all remaining data on a file pointer 설명
int fpassthru
( resource
$handle
)Reads to EOF on the given file pointer from the current position and writes the results to the output buffer. You may need to call rewind() to reset the file pointer to the beginning of the file if you have already written data to the file. If you just want to dump the contents of a file to the output buffer, without first modifying it or seeking to a particular offset, you may want to use the readfile(), which saves you the fopen() call. 반환값
If an error occurs, fpassthru() returns
예제
Example #1 Using fpassthru() with binary files
<?php 주의
참고
|