Voting

: three minus one?
(Example: nine)

The Note You're Voting On

sly at noiretblanc dot org
21 years ago
This is the "is_dir" function I use to solve the problems :

function Another_is_dir ($file)
{
if ((fileperms("$file") & 0x4000) == 0x4000)
return TRUE;
else
return FALSE;
}

or, more simple :

function Another_is_dir ($file)
{
return ((fileperms("$file") & 0x4000) == 0x4000);
}

I can't remember where it comes from, but it works fine.

<< Back to user notes page

To Top