[PHP] is_file() and is_dir() info

2001-07-25 Thread Gonyou, Austin

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: [EMAIL PROTECTED] 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] is_file() and is_dir() info

2001-07-25 Thread Gonyou, Austin

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: [EMAIL PROTECTED] 

 -Original Message-
 From: Gonyou, Austin [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 25, 2001 12:08 PM
 To: 'Chris Cocuzzo'; [EMAIL PROTECTED]
 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: [EMAIL PROTECTED] 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: 
 [EMAIL PROTECTED]
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] is_file() and is_dir() info

2001-07-25 Thread Gonyou, Austin

Please someone help me on this?

-- 
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-796-9023
email: [EMAIL PROTECTED] 

 -Original Message-
 From: Gonyou, Austin 
 Sent: Wednesday, July 25, 2001 12:50 PM
 To: Gonyou, Austin; 'Chris Cocuzzo'; [EMAIL PROTECTED]
 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: [EMAIL PROTECTED] 
 
  -Original Message-
  From: Gonyou, Austin [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, July 25, 2001 12:08 PM
  To: 'Chris Cocuzzo'; [EMAIL PROTECTED]
  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: [EMAIL PROTECTED] 
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: 
  [EMAIL PROTECTED]
  
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] is_file() and is_dir() info

2001-07-25 Thread Gonyou, Austin

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: [EMAIL PROTECTED] 

 -Original Message-
 From: Gonyou, Austin [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 25, 2001 3:19 PM
 To: [EMAIL PROTECTED]
 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: [EMAIL PROTECTED] 
 
  -Original Message-
  From: Gonyou, Austin 
  Sent: Wednesday, July 25, 2001 12:50 PM
  To: Gonyou, Austin; 'Chris Cocuzzo'; [EMAIL PROTECTED]
  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: [EMAIL PROTECTED] 
  
   -Original Message-
   From: Gonyou, Austin [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, July 25, 2001 12:08 PM
   To: 'Chris Cocuzzo'; [EMAIL PROTECTED]
   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: [EMAIL PROTECTED] 
   
   -- 
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail: 
   [EMAIL PROTECTED]
   
  
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: 
 [EMAIL PROTECTED]
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]