Need help on PHP avatar script
<p>I made a simple PHP script to display a users avatar image they uploaded but I was wondering how can I improve the script below. </p>

<p>Is there something I can do to improve the load time on the users avatar images that are very big? If so how can I add it to my code?</p>

<p>Here is the code below:</p>

<pre><code>&lt;?php

list($width, $height) = getimagesize("images/pic.jpg");

if ($width &gt;= 180){
    $width = 180;
    echo '&lt;img src="images/pic.jpg" width="' .$width. '" /&gt;';
} else {
    echo '&lt;img src="images/pic.jpg" width="' .$width. '" height="' .height. '" /&gt;';
}

?&gt;
</code></pre>
