Posted by Janwillem Borleffs on 10/23/05 17:15
Botan Guner wrote:
> I'm running php on win2000 server and iis. I have a script that builds
> the directory sturcture of a directory or a drive. My problem is that
> i want to find that which directories are hidden. I have looked stat()
> function but it seems that it does not return a value for being hidden
> or not.
>
The simplest way of doing this would be to use shell_exec (or exec/system)
to invoke the command interpreter's dir command with some flags:
$hidden = explode("\n", `dir /AH /B`);
Note that the backtics are shortcuts for the shell_exec function.
JW
Navigation:
[Reply to this message]
|