Hi there,
For learning purposes, I never seem to be able to get this php script going. I keep on getting "Fail to open directory". Is there a better way to code it ? I am using Windows version php 4.2.2 on IIS on my workstation.
<?php
// reading directory contents
$dh = opendir("/inetpub/wwwroot/test");
{
die("failed to open directory");
}
$s = readdir($dh);
While ($s)
{
echo "<br>$s";
$s = readdir($dh);
}
closedir($dh);
?>
Cheers and Thanks.