list all files in directory
list all files in dir
Copy this code and paste it in your HTML
opendir(IMD
, $dirtoget) || die("Cannot open directory");
print "Content-type: text/html\n\n";
foreach $f (@thefiles)
{
unless ( ($f eq ".") || ($f eq "..") )
{
}
}
Report this snippet
Comments
Subscribe to comments