Jump to content


Photo

file listing


  • Please log in to reply
1 reply to this topic

#1 mbvo

mbvo
  • Members
  • PipPip
  • Member
  • 13 posts

Posted 04 October 2006 - 08:12 PM

I want a list of all the jpg and gif images in a particular directory, how do i do it?

#2 JaGeK

JaGeK
  • Members
  • PipPip
  • Member
  • 20 posts
  • LocationNRW, Germany

Posted 04 October 2006 - 08:20 PM

I want a list of all the jpg and gif images in a particular directory, how do i do it?


<?php
  $pictures = glob($myDir.'*.{jpg,gif}', GLOB_BRACE);
  print_r($pictures);
?>





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users