I got this to work, it list all file (type f) in the current directory,
you can extend it further.
$ls = split("\n", rtrim (`ls`));
print "";
while (list ($key, $value) = each ($ls)) {
if (is_file ($value)) print "$value\n";
}
print "";
=S.
On Tue, 26 Feb 2002, Andrew Slezak wrote:
> Basic
On Tuesday 26 February 2002 20:50, Andrew Slezak wrote:
> Basically I am setting ls > array(). I want each item to be an option in
> the array. I have have scoured for some time now and this is what I have
> come up with, but it is not populating each file as an ? The
> select box is just empty
Basically I am setting ls > array(). I want each item to be an option in
the array. I have have scoured for some time now and this is what I have
come up with, but it is not populating each file as an ? The select
box is just empty. I know this is an array because I have tested with
print_r.
3 matches
Mail list logo