News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

JSLabs Blog:
How to write an image gallery script in PHP
December 13, 2006 @ 07:10:10

On the JSLabs Blog today, there's a quick new tutorial showing how to create an image gallery script to show off your latest photos and other images to the world.

This is a simple yet useful tutorial on how to write an image gallery script in PHP. It could be used for anything from banner rotation to just a couple of images that you would like to display in rotation on your website.

The code is broken up into two functions - GetAllFiles (grabs the files from the current directory) and DisplayImages (outputs the HTML to display and organize the images). The script doesn't require any external libraries and the functionality in it works with PHP 4.3.0 and above.

It's nothing fancy, but if you need a script to show the images in a directory (it can tell the difference between image and non-image), check this out.

0 comments voice your opinion now!
image gallery script display directory file html tutorial image gallery script display directory file html tutorial


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: Build Blazing Fast PHP Websites with Memcached Distributed Caching

Zend Developer Zone: Build an Enterprise-Grade PHP Stack with Zend Server 5.0 and Oracle 11g

Nefarious Designs: Object-Oriented PHP Part 4: PHP5's Improved Features

Abhinav Singh's Blog: Get real time system & server load notification on any IM using PHP and XMPP

Kae Verens' Blog: pre-parsing HTML for incorrectly-sized images


Community Events

Don't see your event here?
Let us know!


podcast example php7 library conference laravel interview release opinion application series configure framework performance introduction voicesoftheelephpant install community api symfony2

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework