cmded – 提供免费VPN以及免费SSH和免费网站空间多项免费服务
转CHINAZ:国外优秀免费网站空间推荐
日本YCM提供15天免费的独立IP VPS
Xoom.it提供免费的PHP空间

现在位置 >首页 > 所有关于footer的文章

发表于:2010年04月22日  分类:技巧分享, 编程心得  添加评论  1346 views 
php base64_decode 解码方法
PHP目前在网络中被用 的越来越多,加密解密的话题也一直没有停息过。下面简单介绍一下base64_decode+gzinflate压缩编码和解码代码方法,就是通常我们在 程序中见的eval(gzinflate(base64_decode(‘加密代码’))); 形式的加密方法。 加密代码: <?php function encode_file_contents($filename) { $type=strtolower(substr(strrchr($filename,’.'),1)); if(‘php’==$type && is_file($filename) && is_writable($filename)){// 如果是PHP文件 并且可写 则进行压缩编码 $contents = file_get_contents($filename);// ...
阅读全文

Switch to our mobile site