PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
i read the pages but i come out with errors i tried using glob but it didn't work :\
can you give me an example cause the example on the site didn't help
$dir = "/";
// 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<br>";
}
closedir($dh);
}
}
i have that but its showing files that are not even in the directory that the file is in