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? Link to comment https://forums.phpfreaks.com/topic/13222-file-question/ 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. Link to comment https://forums.phpfreaks.com/topic/13222-file-question/#findComment-50897 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. Link to comment https://forums.phpfreaks.com/topic/13222-file-question/#findComment-50900 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.