title: php content-type image size
body: <p>I have this code to display users avatars..</p>
  
  <pre><code>&lt;?php
  include("../core/config.php");
  
  if(isset($_GET['uid'])){
  if(is_numeric($_GET['uid'])){
      $uid = $_GET['uid'];
  }
  else{
      exit();
  }
  
  $sql="SELECT avatar FROM users_avatar WHERE user_id = '$uid'";  
  $row= getRow($sql);
  if(!$row){
      $url = "../usravatars/_default/usravatar_default_m.png";
  }
  else{
  $avatar = $row['avatar'];
  $url = "../usravatars/$uid/$avatar";
  }   
  header("Content-Type: image/jpg");
  readfile($url);
  }
  ?&gt;
  </code></pre>
  
  <p>Is possible to set a custom size for the image being displayed?</p>