Exactly what goes in opendir()??
This is what I have:
<?php
if ($handle = opendir('root/images/cardimages/')) {
echo "Directory handle: $handle\n";
echo "Files:\n";
while (false !== ($file = readdir($handle))) {
echo "$file\n";
}
closedir($handle);
}
?>
And I get warning opendir(root/images/cardimages/) failed to open dir: No such file or directory in /home/site/public_html/listpics.php
What should I put in opendir()??
I even tried the whole url/images/cardimages and that didn't work either.