Baidu Network disk speed, stability is good, you are worth owning, if later support direct connect after can directly use Baidu's net disk.
Here is a temporary solution that is not guaranteed to be available later
Save the following code as downbd.php
Copy CodeThe code is as follows:
$canshu =$_server["Query_string"];
if ($canshu = = "")
{
Die ("file does not exist");
}
Else
{
$wangzhi = "Http://pan.baidu.com/share/link?". $canshu;
$file =file_get_contents ($wangzhi);
$pattern = '/a>/i ';
Preg_match_all ($pattern, $file, $result);
$tempurl =implode ("", $result [1]);
$FILEURLT =str_replace ("\" "," ", $tempurl);
$fileurl =str_replace ("&", "&", $FILEURLT);
Header ("Location: $fileurl");
}
?>
Call Method:
http://***/downbd.php?shareid=00000&uk=00000
Basically, the format of shareid=00000&uk=00000.
http://www.bkjia.com/PHPjc/326719.html www.bkjia.com true http://www.bkjia.com/PHPjc/326719.html techarticle Baidu Network Disk speed, stability is good, you are worth owning, if later support direct connect after can directly use Baidu's net disk. Here is a temporary solution, not guaranteed later ...