Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // connect and login to FTP server
- $ftp_server = "ftp.sciera.net";
- $ftp_username = "bixuser"; // Username
- $ftp_userpass = "ASMPwt"; // Password
- $ftp_conn = ftp_connect($ftp_server) or die("Could not connect to $ftp_server");
- $login = ftp_login($ftp_conn, $ftp_username, $ftp_userpass);
- if (isset($argv[1])) {
- echo "Local File: " . $argv[1]. PHP_EOL;
- }
- if (isset($argv[2])) {
- echo "Server File: " . $argv[2]. PHP_EOL;
- }
- // download server file
- if (ftp_get($ftp_conn,$argv[1],$argv[2],FTP_BINARY,0))
- {
- echo "Successfully written to $argv[1]." . PHP_EOL;
- }
- else
- {
- echo "Error downloading $argv[2].";
- }
- exec('"C:\Program Files\7-Zip\7zG.exe" e "c:\silkinput"');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement