update : 2015.11.03
php.shukuma.com검색:
|
fread(PHP 4, PHP 5, PHP 7) fread — Binary-safe file read 설명
string fread
( resource
$handle
, int $length
)
fread() reads up to
반환값
Returns the read string 실패 시 예제
Example #1 A simple fread() example
<?php
Example #2 Binary fread() example Warning
On systems which differentiate between binary and text files (i.e. Windows) the file must be opened with 'b' included in fopen() mode parameter.
<?php
Example #3 Remote fread() examples Warning
When reading from anything that is not a regular local file, such as streams returned when reading remote files or from popen() and fsockopen(), reading will stop after a packet is available. This means that you should collect the data together in chunks as shown in the examples below.
<?php
<?php 주의
참고
|