파일 다운로드 소스


//$file_name : 실제 다운받을 파일이름.

$filepath="../data/".$file_name;
if(eregi("(MSIE 5.0|MSIE 5.1|MSIE 5.5|MSIE 6.0)", $HTTP_USER_AGENT)){
Header("Content-type: application/octet-stream");
Header("Content-Length: ".filesize($filepath));
Header("Content-Disposition: attachment; filename=$file_name");
Header("Content-Transfer-Encoding: binary");
Header("Pragma: no-cache");
Header("Expires: 0");
} else {
Header("Content-type: file/unknown");
Header("Content-Length: ".filesize($filepath));
Header("Content-Disposition: attachment; filename=$file_name");
Header("Content-Description: PHP3 Generated Data");
Header("Pragma: no-cache");
Header("Expires: 0");
}
$fp = fopen($filepath, "r");
if (!fpassthru($fp)) fclose($fp);
?>
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2003/11/10 09:43 2003/11/10 09:43
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/19

폼 - target 지정하기(프레임셋에서 폼 전송)

< script language="javascript">
< !--
function send(){
form.action = "frame.jsp";
form.target = "_top"; //--- 이런 형식도 가능하다.
form.submit();
}

//-->
< /script>
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2003/11/10 09:42 2003/11/10 09:42
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/18

질문>

회원 리스트가 있는데...member 테이블이 있습니다.
그중에서 필드중에서 email 필드가있는데..
그분만 뽑아서 mail.txt 로 만들수있나요?

예를 들어

mail.txt
----------------
a@a.com
b@a.com
c@a.com


답변>

mysql만을 이용한 방법입니다.
우선 루트로 접속하셔서..

select email from member into outfile "실제 경로/mail.txt";

ex)select email from member into outfile "/home/iprid/mail.txt";
이렇게 하심 될꺼에요..^^;;
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2003/11/10 09:41 2003/11/10 09:41
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/17

echo "
< script language="javascript" >
< !--

//alert ("$session_name 님 오늘 좋은 하루 되세요^^");
parent.location.reload();
//-->
< /script>
";

echo "< META HTTP - EQUIV= "refresh" CONTENT="0;URL=../main.htm" >";


프레임창에서 로그인/로그아웃시 전체 창을 새로고침한다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2003/11/10 09:40 2003/11/10 09:40
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/16

우리는 타인에게는 물론 자기에게도
마이너스 이미지를 지닌 암시를 주어서는 안됩니다.
진정으로 성공하고 싶다면 마이너스 이미지 대신
플러스 이미지를 가져야 합니다. 마이너스 이미지가
인간 육체와 삶을 병들게 하는 마력이 있다면,
플러스 이미지는 인간을 건강하고
성공하게 만드는 신통력이
있기 때문입니다.



- 배훈의 《인생에 너무 늦은 것은 없다》중에서 ---



* 사람은 누구나 자기 거울이 있습니다.
그 거울을 통해 자기 모습을 보게 됩니다.
그 자기 거울에 플러스 이미지를 심으면 늘
밝고 긍정적인 사람이 되고, 마이너스 이미지를 심으면
매사 어둡고 부정적인 사람이 됩니다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2003/11/10 09:32 2003/11/10 09:32
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/497


블로그 이미지

- 홍반장

Archives

Recent Trackbacks

Calendar

«   2003/11   »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
Statistics Graph

Site Stats

Total hits:
186525
Today:
783
Yesterday:
745