if(!eregi("\.jpg$",$image) || !eregi("\.jpeg$",$image))
die("ERROR: doesn't appear to be a JPeg image!");
--Joe
On Fri, Nov 16, 2001 at 09:45:07PM -0500, jtjohnston wrote:
> OK kids, I'm not 19 ... my old brain gets tired easily and my wife is
> complaining that I stay up too late PHPing :)
>
It depends on how you exactly formulated the test
// if((!strpos($yourimage, ".jpg")) or (!strpos($yourimage, ".jpeg")))
if((!strpos($yourimage, ".jpg")) and (!strpos($yourimage, ".jpeg")))
THe first is
if !jpg or !jpeg
while the second if statement tests for
if !jpg and !jpeg
another wa
2 matches
Mail list logo