---
$path="images";
opendir(FP,"$path");
@innhold=readdir(FP);
closedir(FP);
foreach $dir (@innhold){
print "<img src='$path/$dir'>";
print "<br>\n";
}
---
This code opens the directory "images" and displays all the images in the directory.
The output of this code can be viewed at
Is it possible to make a similar script, which can display all the images in a local directory?
-Web
$path="images";
opendir(FP,"$path");
@innhold=readdir(FP);
closedir(FP);
foreach $dir (@innhold){
print "<img src='$path/$dir'>";
print "<br>\n";
}
---
This code opens the directory "images" and displays all the images in the directory.
The output of this code can be viewed at
Is it possible to make a similar script, which can display all the images in a local directory?
-Web