|
PODRĘCZNIK PHP 5.x, 4.x, 3.x - częściowo spolszczony / źródło: www.php.net
[Spis]
[A]
[B]
[C]
[D]
[E]
[F]
[G]
[H]
[I]
[J]
[K]
[L]
[M]
[N]
[O]
[P]
[Q]
[R]
[S]
[T]
[U]
[V]
[X]
[W]
[Z]
convert_uuencode (PHP 5) convert_uuencode --
Uuencode a string
Descriptionstring convert_uuencode ( string data )
convert_uuencode() encodes a string using the uuencode
algorithm.
Uuencode translates all strings (including binary's ones) into printable
characters, making them safe for network transmissions. Uuencoded data is
about 35% larger than the original.
Przykład 1. convert_uuencode() example |
<?php
$some_string = "test\ntext text\r\n";
echo convert_uuencode($some_string);
?>
|
|
See also convert_uudecode() and
base64_encode().
User Contributed Notesaidan at php dot net
29-May-2005 05: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
09-Aug-2004 04: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)
|