Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Hidden directory

 
   Database Forums (Home) -> PHP RSS
Next:  File selection?  
Author Message
Botan Guner

External


Since: May 23, 2005
Posts: 2



(Msg. 1) Posted: Sun Oct 23, 2005 2:50 am
Post subject: Hidden directory
Archived from groups: comp>lang>php (more info?)

Hi everyone,

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.

Thanks for any help,

 >> Stay informed about: Hidden directory 
Back to top
Login to vote
Botan Guner

External


Since: May 23, 2005
Posts: 2



(Msg. 2) Posted: Sun Oct 23, 2005 10:10 am
Post subject: Re: Hidden directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

 >> Stay informed about: Hidden directory 
Back to top
Login to vote
Janwillem Borleffs1

External


Since: Sep 17, 2003
Posts: 170



(Msg. 3) Posted: Sun Oct 23, 2005 10:55 am
Post subject: Re: Hidden directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
 >> Stay informed about: Hidden directory 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
adding php variables in hidden value - Hi all I need help on one matter here. I have a php file which takes values from the form which calls the page and displays it for confirmation. I try to display using this: From: <input name="start" type="hidden" value="&l...

following radio & hidden does not work..... help please. - using the following code with a problem.... echo "<input type='hidden' name='member_id' value=\"{$row[0]}\">{$row[0]}"; echo "<input type='radio' name='member_name' value=\"{$row[1]}\">{$row[1]}<br /&g...

An HTML Form, a hidden form field, and a dropdown box - Hi Guys, Hope you can give me some pointers, you're my last resort before all my hair falls out! ;-) The problem is this. I bought a script, EZUpload, which works great, but my question is about HTML \ PHP. The code is below, but I have read a..

Posting Hidden page that will not trigger POPUP Detectors - Hello all I am trying to write some code that causes a PHP script to be launched on my server from the <Body onunload()> function that will not trip the Big G's popup detector or interfer with the BACK button operation. Any ideas? exring

PHP and Active Directory - Hi I'm trying to get it so visitors to our intranet site are able to log into the site with there normal login details. On a network using win2k3, active directory etc. Now my code at the moment seems to connect to AD but it fails when it trys to bind....
   Database Forums (Home) -> PHP All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]