Home > php教程 > php手册 > 百度网盘文件直链PHP代码

百度网盘文件直链PHP代码

WBOY
Release: 2016-06-13 11:33:26
Original
1174 people have browsed it

通过正则表达式获取百度网盘的文件真实地址,来实现直链的效果,适合一些使用外链的网站使用。

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

 如效果:

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template