convert_uuencode

(PHP 5)

convert_uuencode --  Преобразует строку в формат uuencode

Описание

string convert_uuencode ( string data )

convert_uuencode() преобразует строку data в формат uuencode.

Кодирование Uuencode переводит строки (включая двоичные символы) в последовательности печатных (7-битных) ASCII-символов, что позволяет безопасно обмениваться данными через четь. Закодированные данные примерно на 35% больше оригинала.

Пример 1. Пример использования функции convert_uuencode()

<?php
$some_string
= "test\ntext text\r\n";

echo
convert_uuencode($some_string);
?>

См. также convert_uudecode() and base64_encode().



convert_uuencode
nmmm at nmmm dot nu
12-Apr-2006 08:17
uuencode is recognisable as email attachment in Ms Outlook, but in Outlook Express (at least in older versions) - is not.

This is shell script, but it may give you an idea how you can send attachments using uuencode:

cat file.bin | uuencode file.bin | mail someone@domain.com -s "file.bin"

uuencode mail attachments from other point of wiev are deprecated. However I use such technic for years now and it work well.
aidan at php dot net
29-May-2005 08:51
This functionality is now implemented in the PEAR package PHP_Compat.

More information about using this function without upgrading your version of PHP can be found on the below link:

http://pear.php.net/package/PHP_Compat
Craig at frostycoolslug dot com
08-Aug-2004 07:15
This function can be useful if you wish to store files in a MySQL database, it will save any problems with obscure binary data breaking the queries.

just remember to convery-uudecode before you try to use the data again.

(A common example of something that uses this system, would be email attachments)

<convert_uudecodecount_chars>
 Last updated: Tue, 15 Nov 2005