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 Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.