Re: Is this PHP or server?
From: J.O. Aho (user_at_example.net)
Date: 10/13/04
- Next message: J.O. Aho: "Re: apt-get and php compile"
- Previous message: Recep Uzun: "Re: MySQL Statements and IN Clause"
- In reply to: ScareCrowe: "Re: Is this PHP or server?"
- Next in thread: ScareCrowe: "Re: Is this PHP or server?"
- Reply: ScareCrowe: "Re: Is this PHP or server?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 13 Oct 2004 17:11:17 +0200
ScareCrowe wrote:
> So would this mean that when a call is made for Windows to list the contents
> of given folder, it retrieves the files by the date modified by default? I
> mean whatever script is generating the list within Windows, not PHP. Wait,
> now that I think about it, there were times folders were deleted and
> replaced on the old server, but these changes never came to the php script
> in any order other than by folder name, lowest to highest. (Did that make
> sense?) I just assumed this sorting order was by default?
This has to do with the filesystem, even if you change the dates, the
files/directories keeps their place on the harddrive, the filesystem provides
a list of files/directories in the order they are in the filesystem, while
functions like ls/dir does sort the result usually in an alphabetical order.
When creating files, you will usually get the newest file last on the
filesystem, but when you delete files, you will get empty space inbetween,
when creating a new file now, the empty space will be used up instead of
placed last, which makes that the order isn't anymore alphabetical.
//Aho
- Next message: J.O. Aho: "Re: apt-get and php compile"
- Previous message: Recep Uzun: "Re: MySQL Statements and IN Clause"
- In reply to: ScareCrowe: "Re: Is this PHP or server?"
- Next in thread: ScareCrowe: "Re: Is this PHP or server?"
- Reply: ScareCrowe: "Re: Is this PHP or server?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|