Re: Turning a filehandle into an array
| From: | Christian Reiniger | Date: | Wed, 25 Jul 2001 04:42:50 +0000 |
| Subject: | Re: Turning a filehandle into an array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-59489@lists.php.net to get a copy of this message | ||
On Tuesday 24 July 2001 22:17, Gonyou, Austin wrote:
> What is the best way to turn a filehandle into an array?
Your code is about directory handles...
> ------snip------
> <?
> if ($dr == null)
> $dir=opendir("./");
> else
> $dir=opendir("$dr");
>
> exec("ls $dir", $ls);
re-read the manual entry on opendir()
--
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)
I sat laughing snidely into my notebook until they showed me a PC running
Linux. And oh! It was as though the heavens opened and God handed down a
client-side OS so beautiful, so graceful, and so elegant that a million
Microsoft developers couldn't have invented it even if they had a hundred
years and a thousand crates of Jolt cola.
- LAN Times