FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » How to match image file names under a directory with glob()
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How to match image file names under a directory with glob() [message #169860 is a reply to message #169857] Tue, 28 September 2010 19:50 Go to previous message
Daniel Peraza is currently offline  Daniel Peraza
Messages: 6
Registered: September 2010
Karma:
Junior Member
That seems to work, thanks!

On Sep 28, 2:20 pm, PlastiqueMAN <non...@noname.com> wrote:
> try : glob('*.{jpg,png,gif,bmp}', GLOB_BRACE);
>
> On 2010-09-28 19:24:43 +0200, Daniel Peraza said:
>
>> Hi there! I need to match those file names corresponding to images
>> with glob() but I can't find a pattern that
>> matches .jpg, .png, .gif, .bmp files all at the same time. Would
>> somebody help me please?
>
>> I already tried glob("*.jpg *.png *.gif *.bmp") unsuccessfully.
>
>
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: ssl and php
Next Topic: global var vs session vs something else maybe?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 12:35:52 GMT 2024

Total time taken to generate the page: 0.05247 seconds