note 44047 added to control-structures.else
| From: | micr0c0sm at optonline dot net | Date: | Tue, 13 Jul 2004 14:57:41 +0000 |
| Subject: | note 44047 added to control-structures.else | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-73162@lists.php.net to get a copy of this message | ||
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).
----
Manual Page -- http://www.php.net/manual/en/control-structures.else.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44047
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44047&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44047&report=yes
Search -- http://master.php.net/manage/user-notes.php