Wednesday, January 7, 2009

UUEncoding and UUDecoding

convert_uuencode() function


This function encodes a string using the Unix-to-Unix encoding algorith.


syntax: convert_uuencode(string);

string – the input string

convert_uudecode() function

This function decodes a UU Encoded string.


snytax: convert_uudecode(string);

string – the encoded string

Example input:

$str = "This is Vince";
echo $str;
echo "";
echo convert_uuencode($str);
echo "";
echo convert_uudecode($encstr);

Example output:
This is Vince -5&AI

r!6:6yc90``>

No comments: