I have problem!
I can get image and resize it by imagecopyresampled()
.
But when I try to use ftp_put()
: expects parameter 3 to be a valid path.
I try to use:
ob_start();
imagejpeg($resource, NULL);
$resource = ob_get_contents();
It does not help. I don't need to save the image to a local machine.