> Hi, Newbie question here. I'm trying to write a function to check an image
> extension, part of the code is:
>
> if (substr($imgName, -4) != ".jpg")

if ((substr($imgName, -4) != ".jpg") || (substr($imgName, -4) != ".gif"))
{
 echo "<P CLASS=Error>I'm sorry, but the ikmage format you submitted is not
a supported format.</P>";
}

- John Vanderbeck
- Admin, GameDesign



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to