php迅雷的链接算法
$thunder = ("Thunder://QUFodHRwOi8vNjAuMTkxLjYwLjEwODo4MDgwL3hweGlhemFpL0RlZXBpbl9HaG9zdF9YUF9WMTguMC5pc29aWg==");
//解密它
$thunder = trim($thunder,'Thunder://');
$c_thunder = base64_decode($thunder);
$c_thunder = ltrim(rtrim($c_thunder,'ZZ'),'AA');
//out [url]http://60.191.60.108:8080/xpxiazai/Deepin_Ghost_XP_V18.0.iso[/url];
//加密它
$a_link = 'http://60.191.60.108:8080/xpxiazai/Deepin_Ghost_XP_V18.0.iso';
$a_link = sprintf('AA%sZZ',$a_link);
$a_link = sprintf('Thunder://%s',base64_encode($a_link));
//out Thunder://QUFodHRwOi8vNjAuMTkxLjYwLjEwODo4MDgwL3hweGlhemFpL0RlZXBpbl9HaG9zdF9YUF9WMTguMC5pc29aWg== ?>
相关文档:
dir() 函数打开一个目录句柄,并返回一个对象。这个对象包含三个方法:read() , rewind() 以及 close()。
若成功,则该函数返回一个目录流,否则返回 false 以及一个 error。可以通过在函数名前加上 "@" 来隐藏 error 的输出。
<?php
//打开 images 目录
$dir = dir("images");
//列出 images 目录中的文件
while ......
http://edu.codepub.com/2010/0131/20248.php
其实这个应该不算是疑难问题,就是php中用 sessionid得到session的值,因为的确很简单,只是可能大家平时用不到所以没有注意到罢了。
先说说,这个机制的用途吧,到现在为止战地知道这个机制有两个方面的用途:
其实这个应该不算是疑难问题,就是php中用 sessi ......
一、字符串基础函数
ltrim: 去除连续空白。
trim: 截去字符串首尾的空格。
Chop: 函数从字符串的末端开始删除空白字符或其他预定义字符。(rtrim别名)
<?php
$str = "Hello World!\n\n";
echo $str;
echo chop($str);
?>
输出:
Hello World! Hello World!
htmlspecialchars(string,quotestyle,characte ......
Apache 2 and PHP Installation
The following notes are how I got Apache 2 and PHP 5 (or PHP 4) working together on Linux. These instructions also apply, mostly, for any UNIX-like system, especially other Linux distributions. If you have a recent Linux distribution (say since 2002), you already hav ......