web shop for only 500 euro web site fo only 200 euro


Web-shop for only 500 euro during 3 days, +38 068 801 14 71 (Kiev, Ukraine)

fread

(PHP 3, PHP 4 )

fread -- Binary-safe file read

Description

string fread (int fp, int length)

Fread() reads up to length bytes from the file pointer referenced by fp. Reading stops when length bytes have been read or EOF is reached, whichever comes first.


// get contents of a file into a string $filename = "/usr/local/something.txt"; $fd = fopen ($filename, "r"); $contents = fread ($fd, filesize ($filename)); fclose ($fd);       

See also fwrite(), fopen(), fsockopen(), popen(), fgets(), fgetss(), fscanf(), file(), and fpassthru().


 
web10.net.ua