logo       

Re: eAccelerator encode/decode [ update ]: msg#00020

Subject: Re: eAccelerator encode/decode [ update ]
-----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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe