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

From: Date: Mon, 25 Aug 2008 10:21:30 +0000
Subject: Re: newbie Q: How to say, "if the fileNAME is equal to...", or better yet, "if the fileNAME ends with '.jpg'"?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-278644@lists.php.net to get a copy of this message
2008/8/25 David Otton <phpmail@jawbone.freeserve.co.uk>: > 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/

« previous php.general (#278644) next »