https://github.com/lablnet/php-ftp-class
PHP FTP is a simple and convenient FTP adapter for processing FTP requests via PHP.
https://github.com/lablnet/php-ftp-class
class free ftp ftps oop php
Last synced: 3 months ago
JSON representation
PHP FTP is a simple and convenient FTP adapter for processing FTP requests via PHP.
- Host: GitHub
- URL: https://github.com/lablnet/php-ftp-class
- Owner: lablnet
- License: mit
- Created: 2018-01-28T11:25:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-01T06:45:01.000Z (almost 7 years ago)
- Last Synced: 2025-04-05T13:11:30.425Z (7 months ago)
- Topics: class, free, ftp, ftps, oop, php
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP-FTP-Class
### PHP FTP is a simple and convenient FTP adapter for processing FTP requests via PHP.## BASIC USAGE
Create a new directory, change into it and upload a file```php
$ftp = new FTP('ftp.myserver.com', 'username', 'password',false);$ftp->mkdir('somedir');
$ftp->chdir('somedir');$ftp->put(['my_local_file.html','my_local_file2.html']);
```## Download file from a directory
```php
$ftp = new FTP('ftp.myserver.com', 'username', 'password',false);$ftp->chdir('somedir');
$ftp->get('my_local_file.html', 'file_on_server.html');
```