I'm trying to write some php to make an image slideshow from a file on a server. When I try to opendir it gives me the error in the title
$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;
}
}