Re: How to write a PHP coding to list out all files and directories as links to them?

From: Date: Fri, 15 Apr 2011 01:07:09 +0000
Subject: Re: How to write a PHP coding to list out all files and directories as links to them?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-312407@lists.php.net to get a copy of this message
Mikhail S wrote: > How to write a PHP coding to list out all files and directories as links > to them? > > This is somewhat similar to some index pages. When new file or folder is > added to the directory, HTML page should display the newly created > file/folder together with previous ones after it is being refreshed. > (prefer in alphabatical order) > > How to achieve this sort of functionality in PHP? Please provide sample > coding as well. (and any references) > > Thanks. > > -- > Mike > http://jp.shopsloop.com/ Start with http://php.net/manual/en/function.opendir.php for a basic method. Alternatively you can use the SPL DirectoryIterator class http://php.net/manual/en/class.directoryiterator.php http://php.net is your first resource for php Cheers -- David Robley Hm..what's this red button fo:=/07<NO CARRIER Today is Setting Orange, the 32nd day of Discord in the YOLD 3177.

« previous php.general (#312407) next »