If I am reading all the files using readdir() how can I tell if the file is another dir?PHP Code:if (file is a directory)
{
echo "directory<br>";
}
else
{
echo "file<br>";
}
Printable View
If I am reading all the files using readdir() how can I tell if the file is another dir?PHP Code:if (file is a directory)
{
echo "directory<br>";
}
else
{
echo "file<br>";
}
if (is_dir($file))
{
echo "directory"
}
else
{
echo "file"
}
Thanks :)
hehehhe, no probs
Is that you in your avatar?