首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > PHP >

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

2012-12-31 
在PHP下操作网络驱动器的方法?$path\\\\cdi-test2\\users\\echo $path$dirscandir($path)print_r(

在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只适合做网站,数据读删改。

热点排行