dstars5 Posted June 12, 2013 Share Posted June 12, 2013 Hey guys, I have been trying to figure out how to get all files in a folder into a PHP table.. However, when I use: <?php print_r(scandir($dir)); ?> The array only has the first file in the directory. I have noticed, however, that one out of the 6 folders I have tried with this actually worked. The array contained every file inside. I have no idea why it works on this one though. Can anyone help me out? Link to comment https://forums.phpfreaks.com/topic/279087-scandir-only-returns-1-file/ Share on other sites More sharing options...
ginerjm Posted June 12, 2013 Share Posted June 12, 2013 Showing us the contents of $dir for each of those six might help. As displayed, we don't have any info. Link to comment https://forums.phpfreaks.com/topic/279087-scandir-only-returns-1-file/#findComment-1435628 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.