android6011 Posted June 30, 2009 Share Posted June 30, 2009 I have a page that uploads and renames images according to the item number so like item_4333_1.jpg item_4333_2.jpg item_4333_3.gif etc. Can someone help me with a script that lists all the files that begin with "item_".$_GET['id'] in a directory such as images/items . Thanks in advance Link to comment https://forums.phpfreaks.com/topic/164279-solved-get-files-from-directory-that-being-with/ Share on other sites More sharing options...
.josh Posted June 30, 2009 Share Posted June 30, 2009 glob Link to comment https://forums.phpfreaks.com/topic/164279-solved-get-files-from-directory-that-being-with/#findComment-866601 Share on other sites More sharing options...
android6011 Posted June 30, 2009 Author Share Posted June 30, 2009 thanks! that worked perfectly Link to comment https://forums.phpfreaks.com/topic/164279-solved-get-files-from-directory-that-being-with/#findComment-866679 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.