Re[2]: [PHP-WIN] is_file() can't tell the difference between file and directory in Win32...

From: Date: Mon, 04 Nov 2002 16:13:04 +0000
Subject: Re[2]: [PHP-WIN] is_file() can't tell the difference between file and directory in Win32...
References: 1 2 3  Groups: php.windows 
Request: Send a blank email to php-windows+get-16722@lists.php.net to get a copy of this message
Hello Jack, Monday, November 04, 2002, 6:09:52 PM, you wrote: JKD> I answered my own question with a little digging on the PHPBuilder page... JKD> is_file() and is_dir() will report everything as a directory unless you JKD> first chdir() to the directory. After I added the chdir() it worked. Anyone JKD> know if that's going to be changed in the future? JKD> (I love recursion!) [... skiped ..] there is a easier way to get is_file & is_dir working on win32: u just need to put full path to file or dir is_file("c:\web\index.html"); I've had such a problem. -- Best regards, Alexander Kuznetsov

« previous php.windows (#16722) next »