Re: [PHP] is_dir & is_file bugs?

2005-02-08 Thread Afan Pasalic
Yup! That's the one! I was missing PATH... :) Thank you very much for such a nice explanation! -afan M. Sokolewicz wrote: Matt M. wrote: $path = 'product_images'; $handle = opendir($path); while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") {

Re: [PHP] is_dir & is_file bugs?

2005-02-08 Thread Afan Pasalic
Nope! It doesnt work either... :( Matt M. wrote: $path = 'product_images'; $handle = opendir($path); while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { echo $file; if (is_dir($file)) { echo ' <-- folde

Re: [PHP] is_dir & is_file bugs?

2005-02-08 Thread M. Sokolewicz
Matt M. wrote: $path = 'product_images'; $handle = opendir($path); while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { echo $file; if (is_dir($file)) { echo ' <-- folder'; $folders[] = $fi

Re: [PHP] is_dir & is_file bugs?

2005-02-08 Thread Matt M.
> $path = 'product_images'; > $handle = opendir($path); > while (false !== ($file = readdir($handle))) > { > if ($file != "." && $file != "..") > { > echo $file; > if (is_dir($file)) > { > echo ' <-- folder'; >

[PHP] is_dir & is_file bugs?

2005-02-08 Thread Afan Pasalic
I have script that create directories after item's name and each directory has 2 images: big image and it's thumbnail (both jpgs) But, when I run this code: $path = 'product_images'; $handle = opendir($path); while (false !== ($file = readdir($handle))) { if ($file != "." && $