Here is what I found on it, but I keep getting this error:
$FirstDirToOpen = "dir1";
if (is_dir($FirstDirToOpen)) {
if ($dh = opendir($FirstDirToOpen)) {
while (($file = readdir($dh)) !== false) {
if (is_dir($file)) {
next;
} else {
$afile = file_get_contents("$file", $use_include_path = 1); // Tried with = 0 too, same results. Don't know what it actually does.
}
echo "$afile";
}
closedir($dh);
}
}
Here is the error I get:
Warning: file_get_contents(02-Sep-03.csv): failed to open stream: No such file or directory in /home/ukndoit/public_html/server_test.php on line 19
Warning: file_get_contents(04-Sep-03.csv): failed to open stream: No such file or directory in /home/ukndoit/public_html/server_test.php on line 19
Warning: file_get_contents(06-Sep-03.csv): failed to open stream: No such file or directory in /home/ukndoit/public_html/server_test.php on line 19
Quite a few more actually.
Can you please help me know where in my problem is?