Home > Backend Development > PHP Tutorial > Baidu network disk file direct link PHP code_PHP tutorial

Baidu network disk file direct link PHP code_PHP tutorial

WBOY
Release: 2016-07-20 11:17:33
Original
1409 people have browsed it

Obtain the real address of Baidu Netdisk files through regular expressions to achieve a direct link effect, which is suitable for some websites that use external links.

/i'; preg_match_all($pattern,$file,$result); $tempurl=implode("",$result[1]); $fileurlt=str_replace(""","",$tempurl); $fileurl=str_replace("&","&",$fileurlt); header("location:$fileurl"); } ?>

Such as the effect:

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/371957.htmlTechArticleGet the real file address of Baidu Netdisk through regular expressions to achieve a direct link effect, which is suitable for some external users Chain website use. ?php $canshu=$_SERVER[QUERY_STRING]; if($canshu...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template