Search found 3 matches

by memzenator
Fri May 14, 2010 6:41 pm
Forum: PHP - Code
Topic: Displaying images in order of their name?
Replies: 5
Views: 489

Re: Displaying images in order of their name?

By the way, the site is here, if you care: http://zackhenningsgaard.com
I just feel like you should see it since you helped me. :P
by memzenator
Fri May 14, 2010 6:33 pm
Forum: PHP - Code
Topic: Displaying images in order of their name?
Replies: 5
Views: 489

Re: Displaying images in order of their name?

Thank you so much, for the detailed answer! That worked! :D
The reason I had the capitalized JPG in there was because my photographer friend will be uploading the pictures, and for some reason most of them are capitalized.
by memzenator
Fri May 14, 2010 5:18 pm
Forum: PHP - Code
Topic: Displaying images in order of their name?
Replies: 5
Views: 489

Displaying images in order of their name?

Hello. :) I am using this code to display the images in a directory ("portraits") <?php $path = "./portraits"; $dir_handle = @opendir($path) or die("Unable to open folder"); while (false !== ($file = readdir($dir_handle))) { if(ereg("(.*)\.(jpg|JPG|bmp|jpeg|png|gif...