>
> if ((substr($imgName, -4) != ".jpg") || (substr($imgName, -4) != ".gif"))
this case, in plain english is :
if ext is not jpg, OR if ext is not gif, error
the ext will never be both jpg and gif at the same time, so you're looking
for the condition:
if ((substr($imgName, -4) != ".jpg") && (substr($imgName, -4) != ".gif"))
{
//error
}
else
{
//do image processing thing.
}
also note, some progs. save jpegs as .jpeg
--
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]