Premiso,
Thank you for the reply. I am not familiar with php blobs.
Help me. I could not follow. I did the following code,
and my pdf files are under,
C:\Inetpub\wwwroot\newsa\testpdf
Error on line #8,
foreach (glob($dir . "/*.pdf", $file))
<?php
foreach (glob("/newsa/testpdf/", GLOB_ONLYDIR) as $dir)
{
$folder = explode("/", $dir);
$folder = $folder[count($folder)-1];
echo $folder . "<br />";
foreach (glob($dir . "/*.pdf", $file))
{
$file = basename($file);
echo "<a href='$file'>$file</a><br />";
}
}
?>
Thank you.