Zend - The PHP Company




Code Gallery: armelino


dynamic array of directory contents  

Type: code fragment
Added by: armelino
Entered: 28/05/2002
Last modified: 06/12/2001
Rating: - (fewer than 3 votes)
Views: 8416
This code dynamically lists the (video) files in a directory, loads them into an array, sorts them by name (without the extension), and then displays them with a thumbnail link to the actual (video) file. It also displays the size of the files in kb. I wrote this after giving up on the other array and sort code that I'd seen. None of them seemed to do all of this at once. Note that the .jpg thumbnails that link to the movies all have the same prefix name (the substring is identical). This allows the link to work. A simple text link would have done the same thing.


list and link to all images, and include all their information  

Type: code fragment
Added by: armelino
Entered: 28/01/2002
Last modified: 02/12/2001
Rating: - (fewer than 3 votes)
Views: 6740
This code allows you to dynamically list a directory's image files, creates links to them, and tells you their size in pixels and kilobytes.




Search