PHP Manual: bzwrite
bzwrite
Description
int bzwrite ( resource bz, string data [, int length] )bzwrite() writes a string into the given bzip2 file stream.
Parameters
bzThe file pointer. It must be valid and must point to a file successfully opened by bzopen().
dataThe written data.
lengthIf supplied, writing will stop after
length(uncompressed) bytes have been written or the end ofdatais reached, whichever comes first.