파일다운로드 관련에러 상황! 누가좀 도와주세요 정보
파일다운로드 관련에러 상황! 누가좀 도와주세요본문
고수님들의 조언을 긴급히 구합니다.
지금 download.php에
<?
include_once('./_common.php');
$code = "$g4[path]/inc/doc"; //자신의 경로에 맞게 수정
$file="$code/$filename"; // 화일이 실제로 있는 위치를..
$file_size=filesize($file);
// 브라우저 골라서 헤더를 따로 따로 전송 해 준다.(5.5 일때는 다르게 해줘야 함)
if( strstr($HTTP_USER_AGENT,"MSIE 5.5")){
header("Content-Type: doesn/matter ");
header("Content-Disposition: filename=$filename ");
header("Content-Transfer-Encoding: binary ");
header("Pragma: no-cache");
header("Expires: 0");
}else{
Header("Content-type: file/unknown");
Header("Content-Disposition: attachment; filename=$filename");
Header("Content-Description: PHP3 Generated Data");
header("Pragma: no-cache");
header("Expires: 0");
}
if(is_file("$file")){
$fp = fopen("$file","r");
if (!fpassthru($fp))
fclose($fp);
}
?>
이렇게 사용하고 있고
<a href="<?=$g4[url];?>/download.php?filename=ca.zip">
이렇게 불러오고 있습니다. 그런데 다운로드버튼을 누르면
Warning: filesize() [function.filesize]: stat failed for ./inc/doc/ca.zip in /www/bmtk_co_kr/download.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at /www/bmtk_co_kr/download.php:6) in /www/bmtk_co_kr/download.php on line 17
Warning: Cannot modify header information - headers already sent by (output started at /www/bmtk_co_kr/download.php:6) in /www/bmtk_co_kr/download.php on line 18
Warning: Cannot modify header information - headers already sent by (output started at /www/bmtk_co_kr/download.php:6) in /www/bmtk_co_kr/download.php on line 19
Warning: Cannot modify header information - headers already sent by (output started at /www/bmtk_co_kr/download.php:6) in /www/bmtk_co_kr/download.php on line 20
Warning: Cannot modify header information - headers already sent by (output started at /www/bmtk_co_kr/download.php:6) in /www/bmtk_co_kr/download.php on line 21
이렇게 에러가 뜨면서 다운로드가 되지를 않고 있는데 제거 뭘 빼먹고 있는걸까요?
아니면 뭐가 틀린걸까요..ㅠㅠ
고수님들의 조언을 긴급히 구하는 바입니다....ㅠ.ㅠ
지금 download.php에
<?
include_once('./_common.php');
$code = "$g4[path]/inc/doc"; //자신의 경로에 맞게 수정
$file="$code/$filename"; // 화일이 실제로 있는 위치를..
$file_size=filesize($file);
// 브라우저 골라서 헤더를 따로 따로 전송 해 준다.(5.5 일때는 다르게 해줘야 함)
if( strstr($HTTP_USER_AGENT,"MSIE 5.5")){
header("Content-Type: doesn/matter ");
header("Content-Disposition: filename=$filename ");
header("Content-Transfer-Encoding: binary ");
header("Pragma: no-cache");
header("Expires: 0");
}else{
Header("Content-type: file/unknown");
Header("Content-Disposition: attachment; filename=$filename");
Header("Content-Description: PHP3 Generated Data");
header("Pragma: no-cache");
header("Expires: 0");
}
if(is_file("$file")){
$fp = fopen("$file","r");
if (!fpassthru($fp))
fclose($fp);
}
?>
이렇게 사용하고 있고
<a href="<?=$g4[url];?>/download.php?filename=ca.zip">
이렇게 불러오고 있습니다. 그런데 다운로드버튼을 누르면
Warning: filesize() [function.filesize]: stat failed for ./inc/doc/ca.zip in /www/bmtk_co_kr/download.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at /www/bmtk_co_kr/download.php:6) in /www/bmtk_co_kr/download.php on line 17
Warning: Cannot modify header information - headers already sent by (output started at /www/bmtk_co_kr/download.php:6) in /www/bmtk_co_kr/download.php on line 18
Warning: Cannot modify header information - headers already sent by (output started at /www/bmtk_co_kr/download.php:6) in /www/bmtk_co_kr/download.php on line 19
Warning: Cannot modify header information - headers already sent by (output started at /www/bmtk_co_kr/download.php:6) in /www/bmtk_co_kr/download.php on line 20
Warning: Cannot modify header information - headers already sent by (output started at /www/bmtk_co_kr/download.php:6) in /www/bmtk_co_kr/download.php on line 21
이렇게 에러가 뜨면서 다운로드가 되지를 않고 있는데 제거 뭘 빼먹고 있는걸까요?
아니면 뭐가 틀린걸까요..ㅠㅠ
고수님들의 조언을 긴급히 구하는 바입니다....ㅠ.ㅠ
( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '243588' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )
1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
error file : /15sir/bbs/board.php