I am desparate... and what should be simple isn't...
when I try to upload a .jpg file
this works... and ONLY works for .jpg (good so far)
<?php
$ext = strtolower(strrchr($photo_name,'.'));
if ( $ext != '.jpg' ) {error stuff} else{good stuff}
?>
IF I change it to .gif it works and ONLY works for a .gif... (again GOOD)
YET... If I check that it is a .gif OR a .jpg IT Returns FALSE or either type of file
<?php
//ask that it IS a .jpg or a .gif
if ( $ext != '.jpg' || $ext != '.gif' ) {error stuff} else {good stuff}
?>
I have even tried using 'or' instead of || and doesn't accept either a .gif or .jpg...
Help please.