Is it possible, in any way, to set the way the server sorts the files in a folder?
In the same manner as you can set windows's folders to sort by date, name, last changed, etc.?
All help appreciated.
| SitePoint Sponsor |


Is it possible, in any way, to set the way the server sorts the files in a folder?
In the same manner as you can set windows's folders to sort by date, name, last changed, etc.?
All help appreciated.
www.gwd.no Webdesign.





Yes you need to make a change in your httpd.conf file. Take a look at this document here:
http://httpd.apache.org/docs-2.0/mod...exorderdefault


Hi. Thanks for the reply.
I have never done this before, where do i put the httpd.conf file. I have the site on a remote server and have no access to the server configuration files. Can it be done trough c-panel?
www.gwd.no Webdesign.





What do you want to sort by exactly? You can probably do this with a .htaccess file.


i want to sort images in a folder. by date.![]()
www.gwd.no Webdesign.





Ok create a file called .htaccess in that folder and within the .htaccess file place:
Change Ascending to Descending if you want to sort it the opposite wayCode:IndexOrderDefault Ascending Date![]()


cool,din't know you could do that, thanks alot![]()
www.gwd.no Webdesign.





Glad you got it working!


Do you know if it's possible to retrive the date information stored with a file trough PHP?
www.gwd.no Webdesign.





You'll need to take a look at php's file functions, but yes it's possibleYou should check in the PHP Manual for that though
![]()


yeah I will, Thank you for all the help, I really appreciate it.
www.gwd.no Webdesign.





Anytime!![]()
Bookmarks