mbvo Posted October 4, 2006 Share Posted October 4, 2006 I want a list of all the jpg and gif images in a particular directory, how do i do it? Quote Link to comment Share on other sites More sharing options...
JaGeK Posted October 4, 2006 Share Posted October 4, 2006 [quote author=mbvo link=topic=110520.msg446868#msg446868 date=1159992721]I want a list of all the jpg and gif images in a particular directory, how do i do it?[/quote][code=php:0]<?php $pictures = glob($myDir.'*.{jpg,gif}', GLOB_BRACE); print_r($pictures);?>[/code] 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.