ajfmrf
08-07-2011, 01:30 AM
a bunch of stuff run together
Hi folks I found a small directory lister script.
<?php
$row = exec('dir',$output,$error);
while(list(,$row) = each($output)){
echo $row, "<BR>\n";
}
if($error){
echo "Error : $error<BR>\n";
exit;
}
?>
It lists files and folders all runinning to each other except for one single break.
Can this be modified to have one file/folder to each line in a list form?
I tried to add another <br> in it but I got errors each way I tried it.
Thanks,
Bud
Hi folks I found a small directory lister script.
<?php
$row = exec('dir',$output,$error);
while(list(,$row) = each($output)){
echo $row, "<BR>\n";
}
if($error){
echo "Error : $error<BR>\n";
exit;
}
?>
It lists files and folders all runinning to each other except for one single break.
Can this be modified to have one file/folder to each line in a list form?
I tried to add another <br> in it but I got errors each way I tried it.
Thanks,
Bud