【发布时间】:2016-05-26 16:58:17
【问题描述】:
我正在尝试编写一些 php 来从服务器上的文件制作图像幻灯片。当我尝试打开目录时,它给了我标题中的错误
$images = glob('*.{jpg,jpeg,png,gif}', GLOB_BRACE);
$count = count($images);
$var_count = $count + 1;
$arr_img = Array();
$handle = opendir('http://dev2.matrix.msu.edu/~matrix.training/Holmberg_Dane');
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$arr_img[] = $file;
}
}
【问题讨论】:
-
检查真正的错误和rtm php.net/manual/en/function.opendir.php
标签: php warnings slideshow opendir