Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. public function execute()
  2. {
  3. $connection = $this->sftp->open(
  4. array(
  5. 'host' => 'myhostname',
  6. 'username' => 'myusername',
  7. 'password' => 'mypassword',
  8. 'port' =>22,
  9. 'passive' => true
  10. )
  11. );
  12. if($connection){
  13. echo "true";
  14.  
  15. }else{
  16. echo "false";
  17. }
  18. //print_r($connection);
  19. die;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement