API17:JFTP::connect
From Joomla! Documentation
JFTP::connect
Description
Method to connect to a FTP server.
public function connect (
$host= '127.0.0.1'
$port=21
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $host | string | '127.0.0.1' | Host to connect to [Default: 127.0.0.1] |
| $port | string | 21 | Port to connect on [Default: port 21] |
- Returns boolean True if successful
- Defined on line 239 of libraries/joomla/client/ftp.php
See also
JFTP::connect source code on BitBucket
Class JFTP
Subpackage Client- Other versions of JFTP::connect
User contributed notes
Code Examples