You are here: Re: Hidden directory « PHP Programming Language « IT news, forums, messages
Re: Hidden directory

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация