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

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]


Удаленная работа для программистов  •  Как заработать на 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

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