Skip to content

Commit 6d19225

Browse files
author
Igor Chepurnoy
committed
add $host to README
1 parent 2f1e8f7 commit 6d19225

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Connect to a server FTP :
2929

3030
```php
3131
$ftp = new \yii2mod\ftp\FtpClient();
32+
$host = 'ftp.example.com';
3233
$ftp->connect($host);
3334
$ftp->login($login, $password);
3435
```
@@ -39,6 +40,7 @@ Connect to a server FTP via SSL (on port 22 or other port) :
3940

4041
```php
4142
$ftp = new \yii2mod\ftp\FtpClient();
43+
$host = 'ftp.example.com';
4244
$ftp->connect($host, true, 22);
4345
$ftp->login($login, $password);
4446
```

0 commit comments

Comments
 (0)