comptech520
05-16-2005, 08:35 PM
Hi, I am using
<?php
<?php
$numFiles = 0;
if ($handle = opendir('http://esctonline.com/photoweb/test/123104/')) { # '.' = current dir, change to desired dir
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$numFiles++;
}
}
closedir($handle);
}
echo "<p>There are $numFiles photos available to view</p>\n";
?>
to count the number of photos in a directory. Is still says that there are 0 photos available. Can you help? Thanks
<?php
<?php
$numFiles = 0;
if ($handle = opendir('http://esctonline.com/photoweb/test/123104/')) { # '.' = current dir, change to desired dir
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$numFiles++;
}
}
closedir($handle);
}
echo "<p>There are $numFiles photos available to view</p>\n";
?>
to count the number of photos in a directory. Is still says that there are 0 photos available. Can you help? Thanks