note 44047 deleted from control-structures.else by tomsommer
| From: | tomsommer@php.net | Date: | Tue, 13 Jul 2004 18:16:30 +0000 |
| Subject: | note 44047 deleted from control-structures.else by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-73169@lists.php.net to get a copy of this message | ||
Note Submitter: micr0c0sm@optonline.net
----
following in the below posters footsteps...
<?php
$myimage=$HTTP_GET_VARS['user_small'];
if ( !file_exists('./users/' . $myimage . '.jpg') )
{
$myimage='notfound';
}
?>
<img src="./users/<?php echo $myimage; ?>" border="0"
height="88" width="88">
Less bytes of code, and i beleive it also improves processing speed because it doesnt query http
twice. Correct me if im wrong. (now its 59 bytes less).