RE: [PHP] is_file() and is_dir() info
| From: | Gonyou, Austin | Date: | Wed, 25 Jul 2001 21:46:02 +0000 |
| Subject: | RE: [PHP] is_file() and is_dir() info | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-59627@lists.php.net to get a copy of this message | ||
Well,
I finally got some time on this and found that is_file() and is_dir() will
NOT traverse drectories very well. So, you must chdir(), then execute
is_file() is_dir() as needed.
--
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-796-9023
email: austin@coremetrics.com
> -----Original Message-----
> From: Gonyou, Austin [mailto:austin@coremetrics.com]
> Sent: Wednesday, July 25, 2001 3:19 PM
> To: php-general@lists.php.net
> Subject: RE: [PHP] is_file() and is_dir() info
>
>
> Please someone help me on this?
>
> --
> Austin Gonyou
> Systems Architect, CCNA
> Coremetrics, Inc.
> Phone: 512-796-9023
> email: austin@coremetrics.com
>
> > -----Original Message-----
> > From: Gonyou, Austin
> > Sent: Wednesday, July 25, 2001 12:50 PM
> > To: Gonyou, Austin; 'Chris Cocuzzo'; php-general@lists.php.net
> > Subject: RE: [PHP] is_file() and is_dir() info
> >
> >
> > Will somone on this list please help me in this? All the
> > examples I've come across researching this are WAY too
> > complex for getting around this if someone can confirm my
> suspicions.
> >
> > --
> > Austin Gonyou
> > Systems Architect, CCNA
> > Coremetrics, Inc.
> > Phone: 512-796-9023
> > email: austin@coremetrics.com
> >
> > > -----Original Message-----
> > > From: Gonyou, Austin [mailto:austin@coremetrics.com]
> > > Sent: Wednesday, July 25, 2001 12:08 PM
> > > To: 'Chris Cocuzzo'; php-general@lists.php.net
> > > Subject: [PHP] is_file() and is_dir() info
> > >
> > >
> > > I've read a lot about the is_file and is_dir functions, but
> > > something is
> > > still missing. If I call is_file to tell me if something is a
> > > file or not,
> > > and it must traverse a large path, e.g. ./dir1/dir2/file.txt,
> > > it will almost
> > > always fail. Can anyone tell me why, and what a possible work
> > > around is? I
> > > guess I could CHDIR() first or something.
> > >
> > > --
> > > Austin Gonyou
> > > Systems Architect, CCNA
> > > Coremetrics, Inc.
> > > Phone: 512-796-9023
> > > email: austin@coremetrics.com
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-general-help@lists.php.net
> > > To contact the list administrators, e-mail:
> > > php-list-admin@lists.php.net
> > >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>