Re: dir_object->read() on different platform

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



news.php.net wrote:
Hi! I have some text and JPEG files inside a directory like:
1992-7-11.txt
1992-7-11_pic1.jpg
2000-4-10.txt
2000-4-10_pic1.jpg
2004-5-2.txt
2004-5-2_pic1.jpg
On a Windows box (XP + Apache), if I do a dir_object->read() for the directory, read() reads the files above "in order" (eg. 1992-7-11.txt...2000-4-10.txt...2004-5-2.txt) even the time stamps on these files are different. However, after I ftp them to a Linux box and load the php script from the Linux box, the order is gone. The time stamps on those files on the Linux box are the same since they were all ftp and cp at the same time.
Does anyone know why? Can anyone suggest a simple solution?

Thanks.
Davis
but, to explain why it happens, it going to be like describing the differences between *nix and windows.

Simply put, internally, they store file information differently and by doing this differently, they display the file list differently.

Also, *nix file names are case sensitive and windows is not. Be careful with this one, it will bite you at some point.

Jim

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux