Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try{
- $scp_connection = ssh2_connect($db_list->host) or die("connect failed") ;
- ssh2_auth_password($scp_connection, 'derrick', 'orangespot') or die("password failed") ;
- $d_dir = dirname($file_path) ;
- ssh2_scp_recv($scp_connection, '/tmp/'.$ListCode.'-'.$extended.'.csv', '/tmp/'.$ListCode.'-'.$extended.'.csv') or die("file xfer failed");
- error_log("remote file recieved") ;
Add Comment
Please, Sign In to add comment