dstars5 Posted June 12, 2013 Share Posted June 12, 2013 (edited) 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? Edited June 12, 2013 by dstars5 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.