在PHP上操作网络驱动器的方法

WBOY
Release: 2016-06-13 13:00:51
Original
1624 people have browsed it

在PHP下操作网络驱动器的方法

$path="\\\\cdi-test2\\users\\";
echo $path;
$dir=scandir($path);
print_r($dir);
?>

出现错误
\\cdi-test2\users\
Warning: scandir(\\cdi-test2\users\) [function.scandir]: failed to open dir: No such file or directory in E:\MYOA\webroot\33.php on line 13

Warning: scandir() [function.scandir]: (errno 2): No such file or directory in E:\MYOA\webroot\33.php on line 13

怎么样才能访问映射的网络驱动器。
------解决方案--------------------
要先映射网络驱动器到本地,然后用php操作
------解决方案--------------------
映射是可以的,除非你没有访问X:\\的权限
------解决方案--------------------
干嘛非要用PHP去操作机子系统的东西呢,PHP只适合做网站,数据读删改。

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!