News Feed
Sections




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

NETTUTS.com:
Scanning Folders with PHP
November 13, 2008 @ 14:18:28

The NETTUTS.com site has posted a new PHP-related screencast that covers a simple script to scan over the contents of folders in PHP. To illustrate, they create an image gallery script that mirrors the filesystem structure.

Let's imagine that you want to build a page that will display snapshots of your latest work. [...] In such instances, the best solution is to make PHP scan your "portfolio" folder and dynamically create the code for you. If you want to update your page with a new snapshot, all that you need to do is drag the image, and its respective thumbnail, into the appropriate folders - and PHP will do the rest. Let's build it now!

The screencast comes complete with the entire source and a link to a demo to show the end result.

0 comments voice your opinion now!
scan folder filesystem directory tutorial photo gallery screencast


blog comments powered by Disqus

Similar Posts

Rob Allen's Blog: Metadata from Zend_Db_Table_Abstract

Wb Developer Juice: 10 baby steps to install Memcached Server and access it with PHP

SitePoint PHP Blog: Keeping Your PHP Code Well Documented

Refulz.com: Traits in PHP - Multiple and Nested Traits

PHPMaster.com: Aura.Web: Aura’s Page Controller for MVC


Community Events





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


release community artisanfiles framework opinion interview conference series language library version voicesoftheelephpant laravel tool composer symfony podcast introduction list security

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