-
FAQ
- Forum Search
- Community
- Online Manual
- Support Helpers of the Month
- Function Database
ftp_connection::create_dir
Description
Create a new directory with the specified name.
Syntax
bool ftp_connection::create_dir (string $ftp_dir)
Parameter $ftp_dir
Expected type: String
Description: The name of the directory to create
Return value
Expected type: Boolean
Description: True if successful, false otherwise
Notes
- Example: $package_ftp->create_dir('somedirectory');
- Sends an "MKD" (MaKe Directory) command to the server
- Checks for a 257 response code
- Sets a 'bad_file' error and returns false if response code isn't 257
Advertisement:- Help | Terms and Rules | Go Up ▲
- Copyright © 2022 Simple Machines. All Rights Reserved.
- Page created in 0.122 seconds with 13 queries.
- Forum Search