Re: Re: How to write a PHP coding to list out all files and directories aslinks to them?
| From: | Ashley Sheridan | Date: | Sat, 16 Apr 2011 21:08:27 +0000 |
| Subject: | Re: Re: How to write a PHP coding to list out all files and directories aslinks to them? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312413@lists.php.net to get a copy of this message | ||
On Sat, 2011-04-16 at 15:02 -0500, Shawn McKenzie wrote:
> On 04/14/2011 06:16 PM, 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/
> >
>
> I prefer glob(). Give it a shot and ask for help on code that you have
> tried.
>
>
> --
> Thanks!
> -Shawn
> http://www.spidean.com
>
There is a setting of Apache that will do this automatically for
directories that have no index, I don't remember exactly what it is
right now, but a quick Google should yield results
--
Thanks,
Ash
http://www.ashleysheridan.co.uk