Welcome Guest, Not a member yet? Register   Sign In
cannot modify headers bug?
#4

[eluser]superfake123[/eluser]
still happening D:

here is the entire function that is causing the warning

Code:
public function slideshow_thumb($img, $maxDim, $location)
{
  $location = str_replace('-', '/', $location);
  list($curImgW, $curImgH) = getimagesize('images/'.$location.'/'.$img);

  if($curImgH > $curImgW)
  {
   $dif = $maxDim/$curImgH;
   $newH = $maxDim;
   $newW = floor($curImgW*$dif);
  }
  else
  {
   $dif = $maxDim/$curImgW;
   $newW = $maxDim;
   $newH = floor($curImgH*$dif);
  }

  ini_set('memory_limit','128M');
  $startImg = imagecreatefromjpeg('images/'.$location.'/'.$img);
  $image = imagecreatetruecolor($newW, $newH);

  imagecopyresampled($image, $startImg, 0, 0, 0, 0, $newW, $newH, $curImgW, $curImgH);
  imagejpeg($image, NULL, 80);
  imagedestroy($startImg);
  imagedestroy($image);

}


Messages In This Thread
cannot modify headers bug? - by El Forum - 06-24-2012, 06:24 PM
cannot modify headers bug? - by El Forum - 06-24-2012, 06:43 PM
cannot modify headers bug? - by El Forum - 06-24-2012, 06:59 PM
cannot modify headers bug? - by El Forum - 06-24-2012, 10:03 PM
cannot modify headers bug? - by El Forum - 06-25-2012, 08:20 AM
cannot modify headers bug? - by El Forum - 06-25-2012, 09:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB