PHP: convert_uuencode - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

count_chars convert_uudecode

Last updated: Sat, 27 Jan 2007

view this page in

# 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().

add a note User Contributed Notes
convert_uuencode
tmaschler at NOSPAM dot ditf-denkendorf dot de
20-Sep-2006 01:46
`Note to the tip of Craig at frostycoolslug dot com:
If you are using fulltext functionality on columns with uuencoded texts, collations will not work. You might prefer to pass the text escaped to the database engine.`
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)`
add a note
count_chars convert_uudecode

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST