PHP 4.2.3
Thanks in advance for any help
<?php
if ($handle = opendir('C:/phpdev/www/img/')) {
while (false !== ($file = readdir($handle))) {
$size = getimagesize($file); //ERROR MESSAGE "unable to open for reading 'name of the file'"
}
closedir($handle);
}
?>
The following code is working fine
<?php
$file= "C:/phpdev/www/img/f1.jpg";
$size2 = getimagesize ($file);
echo "<img src= $file >" ;
echo $size2[3]; ?>