ftp - PHP ftp_delete() generates warning "Command okay" -
i can not find answer problems revolve around file not existing or delete process not working.
i have ftp device generate file php script. after that, try ftp in, file , after that, delete it.
this works fine, can connect, file , save locally , delete it. except 1 thing, ftp_delete()
function results in warning.
php gives me following, when executing script:
a php error encountered
severity: warning
message: ftp_delete(): command okay
i looked error code, means successful. , because file deleted on ftp device.
so why generate php error?
cheers.
the rfc 959 (ftp specification) mandates on successful completion of dele
command, server should respond 250
status code.
the php ftp implementation strict, yielding warning on other code, if indicates success (2xx
class).
your server uses other 2xx
code, generic 200 command okay
.
Comments
Post a Comment