I can not find any answer to this as most problems revolve around a file not existing or a delete process not working.
I have an FTP device where I generate a file with an PHP script. After that, I try to FTP in, get the file and after that, delete it.
This all works fine, I can connect, get the file and save it locally and then delete it. Except for one thing, the
A PHP Error was encountered
Message: ftp_delete(): Command okay
The RFC 959 (FTP specification) mandates that on a successful completion of the
DELE command, the server should respond with
250 status code.
The PHP FTP implementation is very strict, yielding a warning on any other code, even if it indicates a success (
Your server probably uses some other
2xx code, like a generic
200 Command okay.