Re: newbie Q: How to say, "if the fileNAME is equal to...", or better yet, "if the fileNAME ends with '.jpg'"?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2008/8/25 David Otton <phpmail@xxxxxxxxxxxxxxxxxxxxxxx>:

> You can check the manual for full details, but briefly, sql_regcase()
> returns a case-insensitive regular expression, and glob() returns an
> array of filenames that match the path given to it (in this case
> "./thumbs/*.jpg").

I should have mentioned that glob() accepts shell wildcard expansions,
not regular expressions. But in this case they're similar enough that
you can get away with a mix-and-match approach.

-- 

http://www.otton.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux