Jump to content

modifying a pre-made script


real_illusions

Recommended Posts

Hi, i have a basic script for my gallery in my site (see siggie). However, i dont know php that well, to know how to change the script so the files and folders are listed in name order, and not in when they were last modified on the server as they are now.the script is from here http://winged.info/project/gallerythanks:)

Link to comment
Share on other sites

You would need to supply some code in order to get a more detailed answer, but essentially, when the software reads the filenames from the directory, store them in an array and sort the array by filename before it builds the presentation is one solution.*edit * looks like we were cross posting I like the previous answer better than mine. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...