redneonrt Posted June 29, 2006 Share Posted June 29, 2006 Is there a way to have php look in a directory and add all the file names it finds into an array? Quote Link to comment Share on other sites More sharing options...
kickassamd Posted June 29, 2006 Share Posted June 29, 2006 [code]<?$path = "path\to\folder";$files = scandir($path);print_r($files);?>[/code]Places each file and directory name with the give path into an array. Quote Link to comment Share on other sites More sharing options...
redneonrt Posted June 29, 2006 Author Share Posted June 29, 2006 Thanks, I found that right as you were replying.Works perfect. Quote Link to comment 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.