/ FTP access parameters: $host = ‘ftp.example.org’; $usr = ‘example_user’; $pwd = ‘example_password’; // file to upload: $local_file = ‘./example.txt’; $ftp_path = ‘/data/example.txt’; // connect to FTP server (port 21) $conn_id = ftp_connect($host, 21) or die (“Cannot connect to host”); // send access parameters ftp_login($conn_id, $usr, $pwd) or die(“Cannot login”); // turn on passive mode […]
- Post author By admin
- Post date
- No Comments on