php로 엑셀파일 만들기

· 18년 전 · 3043
<?
$today = date("Y-m-d");
header( "Content-type: application/vnd.ms-excel" );
header( "Content-Disposition: attachment; filename=". $today. ".xls");
header( "Content-Description: PHP4 Generated Data" );
?>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<html>
<head>
<title></title>
</head>
<body>
<table border=1>
 <tr>
  <td>번호</td>
  <td>번호+1</td>
 </tr>
<? for($i=0; $i<10; $i++){ ?>
 <tr>
  <td><?= $i ?></td>
  <td><?=$i+1 ?></td>
 </tr>
<? } ?>
 <tr>
 </tr>
</table>
</body>
</html>
[이 게시물은 관리자님에 의해 2011-10-31 17:12:10 PHP & HTML에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

팁게시판

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
18년 전 조회 3,905
18년 전 조회 3,601
18년 전 조회 3,002
18년 전 조회 2,902
18년 전 조회 3,477
18년 전 조회 2,133
18년 전 조회 2,077
18년 전 조회 5,475
18년 전 조회 2,664
18년 전 조회 2,405
18년 전 조회 2,716
18년 전 조회 2,054
18년 전 조회 3,044
18년 전 조회 9,996
18년 전 조회 1,903
18년 전 조회 2,812
18년 전 조회 2,842
18년 전 조회 2,103
18년 전 조회 2,950
18년 전 조회 3,940
18년 전 조회 2,907
18년 전 조회 2,283
18년 전 조회 6,003
18년 전 조회 3,634
18년 전 조회 6,310
🐛 버그신고