| 제목 | fopen으로 원격지에 파일을 전송하려하는데요 | ||
|---|---|---|---|
| 카테고리 | PHP | ||
| 글쓴이 | ci매니아 | 작성시각 | 2020/05/08 11:34:21 | 
|  | |||
| Warning: fopen(cdbe9d208ec2cb936bcb1e183e8efcef): failed to open stream: No such file or directory in /www/file_send.php on line 12 Warning: ftp_login(): Login incorrect. in /www/file_send.php on line 23 Warning: ftp_fput() expects parameter 3 to be resource, boolean given in /www/file_send.php on line 28 There was a problem while uploading Warning: fclose() expects parameter 1 to be resource, boolean given in /opt/www/beacon/file_send.php on line 35 
 12line : $fp = fopen($tmpfile, 'r'); 
 23line : $login = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); 
 28line : if (ftp_fput($conn_id, $tmpfile, $fp, FTP_BINARY)) { 
 35line : fclose($fp); 위와 같은 에러가 발생하는데 서버단에서 fopen을 지원을 안해서 그런건가요? if(!function_exists('ftp_login')) 등르로 체크해보니 에러는 없습니다만.. 
 A에서 업로드된 파일을 -> B 서버에 전송하여 업로드 되게끔 짜려고 하는데 다른 방법이 있다면 조언 부탁드립니다.. 
 | |||
| 다음글 | 새버젼 마이그레이션 해주실 분 계실까요? (1) | ||
| 이전글 | html에서 궁금한 점이있습니다. (7) | ||
| 
                                변종원(웅파)
                                /
                                2020/05/08 11:40:07 /
                                추천
                                1
                             | 
| 
                                김치겸
                                /
                                2020/05/08 14:33:53 /
                                추천
                                0
                             
                                파일 또는 디렉토리가 없다는군요 ㅎㅎㅎ
                             | 
에러메세지에 답이 있습니다.
fopen(cdbe9d208ec2cb936bcb1e183e8efcef): failed to open stream: No such file or directory