-
FAQ
- Forum Search
- Community
- Online Manual
- Support Helpers of the Month
- Function Database
ftp_connection::check_response
Description
Checks to see if the desired response code was returned.
Syntax
bool ftp_connection::check_response (int $desired)
Parameter $desired
Expected type: Enumerated Integer
Description: The desired response code (can also be an array of multiple codes)
Possible integer values Allowed values Description 125 Data connection already open; transfer starting 150 File status ok; about to open data connection 220 System ready for new user 226 Closing data connection 227 Entering passive mode 230 User logged in, proceed (ie the password was correct) 250 File command okay, completed 257 "PATHNAME" (ie a file or folder) created 331 Username okay, requires password
Return value
Expected type: Boolean
Description: True if the desired response code was returned, false otherwise
Notes
- Only the response codes used by SMF are documented here
- $desired can also be an array of integers
- See http://www.faqs.org/rfcs/rfc959.html for a complete list
Advertisement:- Help | Terms and Rules | Go Up ▲
- Copyright © 2022 Simple Machines. All Rights Reserved.
- Page created in 0.015 seconds with 13 queries.
- Forum Search