Posted by Botan Guner on 10/23/05 20:10
Thanks, that solved my problem, but i can't keep thinking how would it
be possible if the shell_exec is disabled from the ini file.
Janwillem Borleffs wrote:
> 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]
|