Hello,
So the following is a script that should echo the name of the files in the directory http://www.the-irf.com/ , but when I run the script of my server here (http://www.the-irf.com/echoFile.php) all I see is a blank page.
Does anyone know why this is occurring and how to fix it?
<?php
$dir = "http://www.the-irf.com/files/";
// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
echo "filename: $file";
}
closedir($dh);
}
}
?>
I would appreciate any and all help!
Thanks in Advance & Best Regards,
Team