-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Dec 18, 2006, at 02:53:44, BuildSmart wrote:
> As promised, I have the basic encode/decode routines.
>
> Didn't work on any file related routines as of yet, encode/decode
> is base64 based.
>
> Here's a sample file.
>
> <?php
>
> // This is one long line.
> $str =
> 'PD9waHAKLy8gVG8gZW5hYmxlIFBIUCwganVzdCB1bmNvbW1lbnQgdGhlIGZvbGxvd2luZ
> yBsaW5lcyBpbiBodHRwZC5jb25mOgovLyAgI0xvYWRNb2R1bGUgcGhwNF9tb2R1bGUgCi8
> vICAjQWRkTW9kdWxlIG1vZF9waHA0LmMKLy8gVG8gdGVzdCBQSFAsIGp1c3QgaW52b2tlI
> HRoaXMgcGFnZSBmcm9tIGEgYnJvd3NlcjoKLy8gIGh0dHA6Ly9teWRvbWFpbi5jb20vaW5
> mby5waHAKcGhwaW5mbygpOwo/Pg==';
>
> print "[ " . eaccelerator_decode($str) . " ]";
>
> $str= "This is being encoded";
>
> $output = eaccelerator_encode($str);
>
> print "[ " . eaccelerator_decode($output) . " ]";
>
> ?>
>
> Now what?
>
> -- Dale
[ SNIP ]
A base64 encoder/decoder already exists in PHP so adding another one
makes no sense.
- -- Dale
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
iD8DBQFFhlf20hzWbkf0eKgRAt9RAJ98qe7wylGlvJxx2u+ebIv3E/CxqwCfazqX
yTqTENgpXAwNF91N/xpdFxA=
=B01y
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
|