Guest User

Untitled

a guest
Nov 23rd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. try{
  2. $scp_connection = ssh2_connect($db_list->host) or die("connect failed") ;
  3. ssh2_auth_password($scp_connection, 'derrick', 'orangespot') or die("password failed") ;
  4. $d_dir = dirname($file_path) ;
  5. ssh2_scp_recv($scp_connection, '/tmp/'.$ListCode.'-'.$extended.'.csv', '/tmp/'.$ListCode.'-'.$extended.'.csv') or die("file xfer failed");
  6. error_log("remote file recieved") ;
Add Comment
Please, Sign In to add comment