Re: nlist
| From: | David Nicholson | Date: | Thu, 10 Jul 2003 23:22:44 +0000 |
| Subject: | Re: nlist | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154805@lists.php.net to get a copy of this message | ||
Hello,
This is a reply to an e-mail that you wrote on Fri, 11 Jul 2003 at 00:17,
lines prefixed by '>' were originally written by you.
> Is there a local filesystem-based function comparable to the ftp-based
> 'nlist' that lists files in a directory?
> Johnny
In PHP 5 you can use scandir()
http://uk.php.net/manual/en/function.scandir.php
In lower versions AFAIK you will have to use the system function to call
either ls (on *nix) or dir (on windows).
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Professional Web Development by David Nicholson
http://www.djnicholson.com/
QuizSender.com - How well do your friends actually know you?
http://www.quizsender.com/
(developed entirely in PHP)