I am trying to close an FTP connection via ftp_close, ftp_quit, and ftp_exec($conn_id, "QUIT").
None of them seem to work. When I upload a file with ftp_put the file is not uploaded.
When I used @ftp_close($conn_id), the script exits and the file is uploaded -- but this is NOT what I want -- I need the script to continue executing. I'm pretty sure the only reason why the file is uploaded is because ftp_close is not supported with the version of php I am using.
When I used ftp_quit($conn_id), the script continues and the file is NOT uploaded.
When I use ftp_exec($conn_id, "QUIT"), I get some error that says, SITE_EXEC not understood. I have also tried ftp_exec($conn_id, "BYE").
PLEASE help ! Thank you.