엑셀파일 만들기

<?
$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>
그누보드용은 아니지만
오늘 찾다가 유용한것 같아 올려봅니다
|

댓글 3개

유익한 소스이네요.
보기에도 이해하기 쉽게 정리되었네요.
좋은 정보 알려주셔서 감사드립니다.
감사합니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요. 나누면 즐거움이 커집니다.

+
제목 글쓴이 날짜 조회
18년 전 조회 4,854
18년 전 조회 4,173
18년 전 조회 3,272
18년 전 조회 2.6만
18년 전 조회 7,534
18년 전 조회 5,245
18년 전 조회 2,781
18년 전 조회 4,396
18년 전 조회 4,235
18년 전 조회 5,072
18년 전 조회 2.9만
18년 전 조회 7,958
18년 전 조회 7,526
18년 전 조회 3,415
18년 전 조회 4,260
18년 전 조회 4,593
18년 전 조회 1.5만
18년 전 조회 2,722
18년 전 조회 4,425
18년 전 조회 5,723