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

2002-11-04 Thread Jack Kelly Dobson
Passing the whole path does work as well. I wrote the attached script so departments in our company could put files on out internal website by dragging and dropping to a shared folder. I have to find away around the "This page has expired" message when you click the "back" button but other than th

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

2002-11-04 Thread Alexander Kuznetsov
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. Any

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

2002-11-04 Thread Jack Kelly Dobson
gt; I had similar problems. Use strcmp() with .. and . . > Or use filetype() to determine if it is a file or directory or ... > > > Mike > > > On Fri, 1 Nov 2002, Jack Kelly Dobson wrote: > > > Date: Fri, 1 Nov 2002 16:39:55 -0600 > > From: Jack Kelly Dobson <[E

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

2002-11-01 Thread Jack Kelly Dobson
Hello, This is the first time I've worked with these functions so I'm sure it's in Indian, not the arrows. This script identifies both files and directories as directories. What am I doing wrong here? I'm running as a .dll under IIS. "); } else { print($fi