Canto♂
( David Yoon / Joon Young Yoon )
+81.80.3002.0708
Canto87(at)naver.com
  • 39
  • 40872

by Canto  /  on Jul 11, 2011 21:30
remote서버가 ssh 가 사용 가능하다는 전제하에 가능..


$connection ssh2_connect('sftp://~~~'22);
ssh2_auth_password($connection'username''password');
ssh2_scp_send($connection'/local/filename''/remote/filename'0644);


Returns TRUE on success or FALSE on failure.


Return 값이 True 일때 성공 메시지 보내기

Return 값이 False 일때 실패 메시지 보내기


음.. 일단 프로그래밍 하기 간단한 건 scp 쪽이 좋을 꺼 같은데.. 

파일 바꿔 쓰기랑 scp 랑 어느걸로 할까...

Comment '0'

Leave Comments

Tag
Write
first 1 2 3 4 5 6 7 8 9 10 last
XE Login