Re: [PHP] Unix problem

2001-05-20 Thread Urb LeJeune
Bingo, he said as he slapped his forehead with open palm. Thanks a 10**6 Urb At 10:42 AM 5/20/01 +0200, Christian Reiniger wrote: >readdir returns the file/directory name without path, is_file and is_dir >expect a complete filenam with path. So unless you only examine your >c

Re: [PHP] Unix problem

2001-05-20 Thread Christian Reiniger
On Saturday 19 May 2001 14:22, Urb LeJeune wrote: > I'm using the follow snippet while traversing a directory. > > while ($Directory=readdir($DirHandle)) { > > $IsFile = is_file($Directory); > $IsDir = is_dir($Directory); > echo " is file=$IsFile - is dir=$IsDir\n"; > > Works fine on W

Re: [PHP] Unix problem

2001-05-19 Thread Urb LeJeune
>>while ($Directory=readdir($DirHandle)) { >> >> $IsFile = is_file($Directory); >> $IsDir = is_dir($Directory); >> echo " is file=$IsFile - is dir=$IsDir\n"; >> >> Works fine on Windows box, on a Unix box (RedHat) both >>is_file() and is_dir() return null no matter what the contents o

Re: [PHP] Unix problem

2001-05-19 Thread B. van Ouwerkerk
>while ($Directory=readdir($DirHandle)) { > > $IsFile = is_file($Directory); > $IsDir = is_dir($Directory); > echo " is file=$IsFile - is dir=$IsDir\n"; > > Works fine on Windows box, on a Unix box (RedHat) both >is_file() and is_dir() return null no matter what the contents of >$Direc

[PHP] Unix problem

2001-05-19 Thread Urb LeJeune
I'm using the follow snippet while traversing a directory. while ($Directory=readdir($DirHandle)) { $IsFile = is_file($Directory); $IsDir = is_dir($Directory); echo " is file=$IsFile - is dir=$IsDir\n"; Works fine on Windows box, on a Unix box (RedHat) both is_file() and i