In PHP4.4.1 I noticed that gzfile only reads up to 8190 bytes per line. I had a 20K SQL query that was cut into 3 parts - and wondered why the SQL server complained.
Reading an uncompressed file with the file() command works as expected.
![]() | gzfile说明array gzfile ( string filename [, int use_include_path] )This function is identical to readgzfile(), except that it returns the file in an array. 参数
![]()
nb_nonospamm_ at wtal dot de
27-Nov-2005 08:12
In PHP4.4.1 I noticed that gzfile only reads up to 8190 bytes per line. I had a 20K SQL query that was cut into 3 parts - and wondered why the SQL server complained.
The Jedi
28-Jun-2005 09:44
A quicker way to load a gziped file in a string :
webmaster at ragnarokonline dot de
14-Jan-2004 03:58
This works similar to gzfile() but it returns the file in a string instead of an array and doesn't write it to stdout compared to readgzfile.
| ![]() |