php_quick_uudecode -- Decodes all the multi-parts or single-part files given.
bool php_quick_uudecode (array source[, string destination, bool erase, bool overwrite, bool callback])
This function decodes all the multi-parts or single-part files.
Note that this function is special. It shouldn’t be called between a php_uuinitialize call and a php_uucleanup call.
Indeed, php_quick_uudecode calls these two functions internally.
Moreover, it is useless to call php_uusetoption before calling php_quick_decode. Indeed, php_quick_uudecode doesn’t use the options set before its call.
The names of the encoded files must be in the string array “source”.
Others parameters are optional.
By default, files are decoded to the current directory. But if “destination” is set, there are several possibilities :
By default, encoded files aren’t erased after being decoded. But if “erase” is true,
they will be removed if the decoding operation succeeds.
- there are more than one file to decode : “destination” is considered as a directory and all files will be written in it.
- there is only one file to decode and the last character of “destination” is ‘/’ or ‘\’ : “destination” is considered as a directory and the only file will be written in it.
- There is only one file and the “destination” parameter is an absolute path name : it is used itself.
By default, when this function finds that the target file already exists, it is simply overwritten silently.
If “overwrite” is set to false, the decoding 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.
The function always return true if it is called with the good parameters.