Re: [PHP] Turning a filehandle into an array

2001-07-24 Thread Christian Reiniger
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

[PHP] Turning a filehandle into an array

2001-07-24 Thread Gonyou, Austin
What is the best way to turn a filehandle into an array? This is the code I've got now, but I don't like it because it's rather in efficient for my purposes. I can format this to be much prettier, but I'm not too concerned about it right now. I'd just like to get the filehandles to work. --