php_quick_uuencode

(PHP 4)

php_quick_uuencode -- Encodes the input data and writes the output into one or more output files on the local disk.

Description

bool php_quick_uuencode (string source, int encoding[, string destination, int linperfile, bool overwrite, bool callback])

This function encodes the input file and writes the output into one or more output files on the local disk.
Note that this function is special. It shouldn’t be called between a php_uuinitialize call and a php_uucleanup call. Indeed, php_quick_uuencodetofile calls these two functions internally.
Moreover, it is useless to call php_uusetoption before calling php_quick_encodetofile. Indeed, php_quick_uuencodetofile doesn’t use the options set before its call.

“source” is a string containing the name of the file to encode.

“destination”, “linperfile”, “overwrite” and “callback” parameters are optional.

By default, files are decoded to the current directory. But you can define “destination” to change the filename and/or the savepath.
By default, “linperfile” is set to 0.
By default, when this function finds that the target file already exists, it is simply overwritten silently. If “overwrite” is set to false, the encoding operation fails.
By default, the messages generated by the library aren’t printed. But if “callback” is true, all messages of level UUMSG_NOTE or greater are printed on the web page.

Piscines en bois