View Single Post
  #8  
Old 12-06-2004, 02:58 AM
horix Offline
forum loafer
 
Join Date: Nov 2004
Posts: 6
Hey... I PM'd punk about this and he went and fixed the problem, here is the correct code:

Code:
list($image_width,$image_height,$imtype,$imattr) = getimagesize("images/$image_name"); 
$img_width = $image_width; 
$tpl = ereg_replace("<IMAGE_WIDTH>","$img_width",$tpl);
That will only give you width... if you copy the last two lines and replace every "width" with "height" and youre good to go on both
Reply With Quote