Trying to resample one image and upload(reupload) it to my server via ftp.
I’ve ftp access, so no conection problems here, but my file doesn’t go there because imagecopyresized handle is a number (1) and not a file.
The question is, what should i do with this litle code
imagejpeg($background,ftp_put($conn_id, $destino, imagecopyresized($background, $im, 0, 0, 0, 0, $nw, $nh, $w, $h), FTP_BINARY),99);
Thanks,
Pluda
ftp_put – third parameter for this function must be path to local file.
So you should save image to local and then try to use ftp_put function