Home > Backend Development > PHP Tutorial > 这么为什么不能实现文件下载

这么为什么不能实现文件下载

WBOY
Release: 2016-06-13 11:42:49
Original
1911 people have browsed it

这样为什么不能实现文件下载
$root="D:/wamp/www/新建文件夹/";
if(is_dir($root))
{
   $openHandle=opendir($root);
   while(false!==($file=readdir($openHandle)))
   {
   if(!is_dir($root.$file))
   {
   echo "".$file."
";
    echo "$root$file
";
   }
   }
   closedir($openHandle);
}
else 
{
echo "文件夹不存在";
}
?>
这段代码为什么不能实现文件下载 浏览器:搜狗浏览器 IE 都试了

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