Hello,
When I call Imagejpeg($img_handle), the image is rightly displayed in the browser,
but when I give the second parameter ImageJpeg($img_handle,"/var/www/html/image/pic.jpg")
to get it copied to the destination, the file does not get copied. No file gets created of the name pic.jpg in the folder image.
$img_handle is the handle of the thumbnail which I have made from another file by using ImageCopyResized() function.
Am I giving the filepath wrongly? But i have also tried writing the path from server root i.e. "image/pic.jpg".