Web студия "GrandView"
  Главная   Написать Контакты
   
   
О проекте
Руководство php
 

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



count_chars> <convert_uudecode
Last updated: Sat, 27 Jan 2007
 
add a note 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)

count_chars> <convert_uudecode
Last updated: Sat, 27 Jan 2007
 
 
Новости
11 июля 2007
Сайт запущен
© 2007 info@grandviewstudio.com

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 324

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 330
Z058440144362 Z348613067571