darrennickerson Posted January 18, 2009 Share Posted January 18, 2009 Hi, i was just wondering how i would be able to take all the files in a folder and automaticly make a them links to download in html page. i dont know if my explaination is good enough but its hard to explain. Link to comment https://forums.phpfreaks.com/topic/141369-how-to-add-all-files-in-a-folder-to-a-page/ Share on other sites More sharing options...
xtopolis Posted January 18, 2009 Share Posted January 18, 2009 $files = glob("*.*"); foreach($files as $f) { echo "<a href='$f'>$f</a><br />"; } Link to comment https://forums.phpfreaks.com/topic/141369-how-to-add-all-files-in-a-folder-to-a-page/#findComment-739982 Share on other sites More sharing options...
N1CK3RS0N Posted January 19, 2009 Share Posted January 19, 2009 Nice last name? Link to comment https://forums.phpfreaks.com/topic/141369-how-to-add-all-files-in-a-folder-to-a-page/#findComment-740144 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.