php_uuencodetofile -- Encodes the input data and writes the output into one or more output files on the local disk.
int php_uuencodetofile (mixed infile, int encoding, string outfname, string diskname[, long linperfile])
This function encodes the input data and writes the output into one or more output files on the local disk. No headers are generated. If diskname==NULL, the names of the encoded files are generated by concatenating the save path (see the UUOPT_SAVEPATH option) and the base name of outfname or infile (if outfname == NULL).
If diskname != NULL and does not contain directory information, the target filename is the concatenation of the save path and diskname. If diskname is an absolute path name, it is used itself.
From the so-generated target filename, the extension is stripped. For single-part output files, the extension set with the UUOPT_ENCEXT option is used. Otherwise, the three-digit part number is used as extension. If the destination file does already exist, the value of the UUOPT_OVERWRITE is checked: if overwriting is not allowed, encoding fails with UURET_EXISTS.
The parameter linperfile is optional.
If infile is a string, parameters outfname and diskname are also optional. If they are not set up, the value NULL is assigned to them.