Home > Backend Development > PHP Tutorial > 关于这个php远程下载的代码!该怎么解决

关于这个php远程下载的代码!该怎么解决

WBOY
Release: 2016-06-13 13:35:04
Original
927 people have browsed it

关于这个php远程下载的代码!!!!!!!!!!!!!

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--> 
Copy after login



这个 代码,他的保存地址为 temp/ 有没有方法 让 这个文件保存地址 为 接受来自GET的数据 比如 a.php?file=index 
则 目录为 index 有没有方法搞成这样  




------解决方案--------------------
$destination_folder = 'temp/';

改为

$destination_folder = $_GET['file'] . '/';
Related labels:
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