|
Home
iRate! Tutorials Headlines CoolSites PHP Functions |
|
Most Referenced Functions » google_pagerank() » preg_replace() » htmlentities() » imagecreatefrompng() » site_pageranks() » imagepng() » imagestring() » imagedestroy() » header() » imagecolorallocate() » preg_match() » session_start() » getimagesize() » urlencode() » ob_start() » flush() » strpos() » str_replace() » htmlspecialchars() » array2vars() » fopen() » nl2br() » preg_match_all() » setcookie() » strstr() » ob_flush() » ereg() » preg_split() » ereg_replace() » var_dump() Our Sponsors » Weblog Community » Listen to Podcasts » Rock Music Community - meet fans Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email Tabpole[AT]Gmail[DOT]com. |
PHP Functions
Function: gzread (PHP 3, PHP 4, PHP 5) gzread -- Binary-safe gz-file readDescriptionstring gzread ( resource zp, int length )gzread() reads up to length bytes from the given gz-file pointer. Reading stops when length (uncompressed) bytes have been read or EOF is reached, whichever comes first. Parameters
zp The gz-file pointer. It must be valid, and must point to a file successfully opened by gzopen() . lengthThe number of bytes to read. Return ValuesThe data that have been read. Examples
Example 1. gzread() example <?php // get contents of a gz-file into a string $filename = "/usr/local/something.txt.gz"; $zd = gzopen($filename, "r"); $contents = gzread($zd, 10000); gzclose($zd); ?> Related Function(s) |