php_uuencodepartial -- Encodes data as the body of a MIME-"message/partial" message.
int php_uuencodepartial (resource outfile, string infile, int encoding[, string outfname, string mimetype, int filemode, int partno, long linperfile])
This function encodes data as the body of a MIME-“message/partial” message. This type allows message fragmentation.
This function must be called repetitively until it runs out of input data. The PHP script must provide a valid envelope with a “message/partial” content type and proper information about the part numbers.
Each call produces linperfile lines of encoded output. For uuencoded and xxencoded files, each output line encodes 45 bytes of input data, each Base64 line encodes 57 bytes and each Yenc line encodes 128 bytes.
Parameters mimetype, filemode, partno and linperfile are optional.
If linperfile is not set up, the value 0 is assigned to it and this function is equivalent to php_uuencodemulti.
If partno is not set up, the value 1 is assigned to it.
“infile” is opened internally and a value of UURET_CONT is returned for all parts (except the last for which UURET_OK is returned). So this function must be called repetitively until UURET_OK is returned.