외부파일 업로드하기

http://torrage.com/torrent/6555f2f2cdf34e4d6d02904d373470f6e7e4f4a6.torrent
같은 파일경로를 그누보드에 RSS긁어와서 파일업로드를 하려고 합니다.

어떤방법이 있을까요?




$url_join[$i] = "http://torrage.com/torrent/6555f2f2cdf34e4d6d02904d373470f6e7e4f4a6.torrent";


//echo "$url_join[$i]<br>";

$file[$i] = $url_join[$i];
$src_file[$i] = $url_join[$i];

//echo "a - $file[$i]";

//$file = iconv("euc-kr", "utf-8",$file);
//$dest_name = get_unique_file($file[$i]);
//$file[$i] = urldecode($file[$i]);

$save_files[$i] = $file[$i];
//파일을 지정할 경로

echo "$save_files[$i]<br>";

$file_name[$i] = $g4['path']."/data/file/$bo_table/$save_files[$i]";

@copy($src_file[$i], $file_name[$i]);

$upload[0]['image'] = $g4['path']."/data/file/$bo_table/$save_files[$i]";
$upload[0][source] = $file[$i];
$upload[0][filesize] = filesize($upload[0]['image']);
$upload[0][file] = $save_files[$i]; //원파일명

$sql_f = " insert into g4_board_file
set bo_table = '$bo_table',
wr_id = '$wr_id',
bf_no = '0',
bf_source = '{$upload[0][file]}',
bf_file = '{$upload[0][file]}',
bf_content = '{$bf_content[0]}',
bf_download = 0,
bf_filesize = '{$upload[0][filesize]}',
bf_width = '{$upload[0][image][0]}',
bf_height = '{$upload[0][image][1]}',
bf_type = '{$upload[0][image][2]}',
bf_datetime = '$g4[time_ymdhis]' ";

echo "$sql_f<br>";<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
|

댓글 3개

같은 고민을 하고 있는 것 같은데 body1197@nate.com 연락 부탁 드려요 아니면 전화 070 4206 2402

시간 살관 없습니다.
이 글은 팁, 강좌, 소스 중에 아무것도 아니군요.
토렌토 외부파일 업로드하기
댓글을 작성하시려면 로그인이 필요합니다. 로그인

프로그램

+
제목 글쓴이 날짜 조회
14년 전 조회 1,524
14년 전 조회 772
14년 전 조회 776
14년 전 조회 1,039
14년 전 조회 1,261
14년 전 조회 891
14년 전 조회 1,183
14년 전 조회 1,804
14년 전 조회 789
14년 전 조회 1,120
14년 전 조회 1,134
14년 전 조회 849
14년 전 조회 863
14년 전 조회 1,243
14년 전 조회 1,728
14년 전 조회 1,633
14년 전 조회 1,537
14년 전 조회 913
14년 전 조회 1,105
14년 전 조회 943
14년 전 조회 831
14년 전 조회 2,022
14년 전 조회 1,297
14년 전 조회 1,237
14년 전 조회 1,291
14년 전 조회 1,508
14년 전 조회 874
14년 전 조회 1,659
14년 전 조회 3,953
14년 전 조회 1,888
14년 전 조회 1,989
14년 전 조회 1,410
14년 전 조회 1,877
14년 전 조회 1,513
14년 전 조회 1,337
14년 전 조회 1,008
14년 전 조회 965
14년 전 조회 1,171
14년 전 조회 1,419
14년 전 조회 5,948
14년 전 조회 1,482
14년 전 조회 1,199
14년 전 조회 1,249
14년 전 조회 820
14년 전 조회 1,013
14년 전 조회 1,624
14년 전 조회 1,090
14년 전 조회 748
14년 전 조회 1,289
14년 전 조회 1,356
14년 전 조회 1,674
14년 전 조회 990
14년 전 조회 4,570
14년 전 조회 1,156
14년 전 조회 1,135
14년 전 조회 1,156
14년 전 조회 1,348
14년 전 조회 1,157
14년 전 조회 895
14년 전 조회 969
14년 전 조회 1,406
14년 전 조회 710
14년 전 조회 1,286
14년 전 조회 1,280
14년 전 조회 1,368
14년 전 조회 4,104
14년 전 조회 1,341
14년 전 조회 1,047
14년 전 조회 1,472
14년 전 조회 1,639
14년 전 조회 837
14년 전 조회 2,084
14년 전 조회 2,061
14년 전 조회 1,648
14년 전 조회 1,601
14년 전 조회 1,113
14년 전 조회 1,593
14년 전 조회 1,525
14년 전 조회 1,235
14년 전 조회 969
14년 전 조회 2,715
14년 전 조회 2,024
14년 전 조회 1,381
14년 전 조회 2,037
14년 전 조회 916
14년 전 조회 1,016
14년 전 조회 1,639
14년 전 조회 1,744
14년 전 조회 1,346
14년 전 조회 1,036
14년 전 조회 1,204
14년 전 조회 1,137
14년 전 조회 1,986
14년 전 조회 2,115
14년 전 조회 1,986
14년 전 조회 1,118
14년 전 조회 1,690
14년 전 조회 1,744
14년 전 조회 1,842
14년 전 조회 3,613
🐛 버그신고