I dont think you can access a web dir as a full path.
Only dirctories (eg. "C:\Temp") can be opened as a full path using the "opendir" function.
as for the error that pops out when no directory has been specified first check if the path specified is a directory, and if it is, then use the opendir function like what i have done below
<?
if (is_dir(photos))
{
$handle = opendir(photos);
while($filename = readdir($handle))
{
if ($filename != "." && $filename != "..")
{
if(is_dir($filename))
print '<font color="#0033CC">There is a photo folder</font>';
}
}
}
?>