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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to