Please Help!
Posted by: khurram (---.wateen.net)
Date: June 26, 2008 10:10AM

Hello EveryOne!

I was using Wamp 1.4 and 2 days back i installed Wamp 2. My all image resizing script stoped which is working fine at Wamp 1.4

Here is re-size script


$filename = $HTTP_POST_FILES["cover"]["tmp_name"];
$percent = 0.5;

// Content type
header('Content-type: image/jpeg');

// Get new sizes
list($width, $height) = getimagesize($filename);
$newwidth = 200;
$newheight = $height * ($newwidth/$width);

// Load
$thumb = imagecreatetruecolor($newwidth, $newheight);
$source = imagecreatefromjpeg($filename);

// Resize
$out = imagecopyresampled($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
$image = "../covers/".basename($id.$_FILES['cover']['name']);

// Output
imagejpeg($thumb, $image, 100);
$img = imagedestroy($thumb);



This script working fine on my hosting but not Wamp 2.0.

My GD is enabled and posted image is not going to image folder.

Please help me

Thanks
Khurram

Options: ReplyQuote
Re: Please Help!
Posted by: khurram (---.wateen.net)
Date: June 26, 2008 10:14AM

Got Error

$HTTP_POST_FILES not working in Wamp 2.

Thankyou

Options: ReplyQuote
Re: Please Help!
Posted by: yfastud (Moderator)
Date: June 26, 2008 03:20PM


Options: ReplyQuote


Sorry, only registered users may post in this forum.