[PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Kristopher Spencer-Yates
//PHP4 $dir_to_scan = website.com/htdocs; $dir_handle = opendir($dir_to_scan); while($filename = readdir($dir_handle)){ if(is_dir($filename)){ $files_in_scan[] = $filename; } else{ echo$filename is not a directory.br\n; } } sort($files_in_scan);

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread John Holmes
- Original Message - From: Kristopher Spencer-Yates [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 16, 2004 12:55 PM Subject: [PHP] PHP4 readdir is_dir working incorrectly? //PHP4 $dir_to_scan = website.com/htdocs; $dir_handle = opendir($dir_to_scan); while($filename

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread John Nichel
Kristopher Spencer-Yates wrote: //PHP4 $dir_to_scan = website.com/htdocs; $dir_handle = opendir($dir_to_scan); while($filename = readdir($dir_handle)){ if(is_dir($filename)){ $files_in_scan[] = $filename; } else{ echo$filename is not a directory.br\n; }

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Kristopher Spencer-Yates
Jack Gates wrote: I would do this in PHP5 but the admin won't upgrade, so I am stuck in PHP4 land w/ this project I am on. Thanks for any advise, We are setting up another web hosting server and we are planning to install PHP5. You might consider moving your site to our servers.

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Kristopher Spencer-Yates
caught that immediately!! heheh LOL Cheers, Kris John Holmes wrote: - Original Message - From: Kristopher Spencer-Yates [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 16, 2004 12:55 PM Subject: [PHP] PHP4 readdir is_dir working incorrectly? //PHP4 $dir_to_scan

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread John Holmes
From: Kristopher Spencer-Yates [EMAIL PROTECTED] Please join in laughing at me because I have been slinging PHP since early 99 and should have caught that immediately!! I was already planning to do a lot of laughing at you tonight, anyhow, from around 2100 - 2130, so, I hope it helps and

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread John Nichel
John Holmes wrote: From: Kristopher Spencer-Yates [EMAIL PROTECTED] Please join in laughing at me because I have been slinging PHP since early 99 and should have caught that immediately!! I was already planning to do a lot of laughing at you tonight, anyhow, from around 2100 - 2130, so, I hope

RE: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Jay Blanchard
[snip] Just so we're clear, and all on the same page, can you give us that time in GMT? I mean, we don't want to have an unorganized laugh-off again, now do we? [/snip] -1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread John Holmes
From: John Nichel [EMAIL PROTECTED] Just so we're clear, and all on the same page, can you give us that time in GMT? I mean, we don't want to have an unorganized laugh-off again, now do we? Man... why do you have to be such as ass John? Can't you just ignore people...err.. wait.. wrong

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Greg Donald
http://www.morningstarcom.net/hosting.php Need sunglasses to view the t50.com graphics. Heh. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread John Nichel
John Holmes wrote: From: John Nichel [EMAIL PROTECTED] Just so we're clear, and all on the same page, can you give us that time in GMT? I mean, we don't want to have an unorganized laugh-off again, now do we? Man... why do you have to be such as ass John? Can't you just ignore people...err..

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Jack Gates
Out of respect for everyone on the list, it is probably best to not use this mailing list as a sales tool. Many of us here on the list are in the same business of developing and hosting. It is wise to assume everyone on the list is in the same business (even if it is untrue). Just know

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Jack Gates
This is just to say that I never sent that to the list. I sent it privately. So for you to send this to the list to say that I probably should not was not good either. Because now the whole list has been bothered instead of just one. On Thursday 16 September 2004 03:15 pm, Kristopher