스

엑셀파일 만들기

· 2007-10-08 (월) 17:00:51 · 5257 · 3
<?
$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개

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

그누4 팁자료실

3,309건

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

+
제목 글쓴이 날짜 조회
07-10-19 조회 4,356
07-10-16 조회 3,441
07-10-16 조회 2.6만
07-10-13 조회 7,715
07-10-12 조회 5,439
07-10-10 조회 2,946
07-10-10 조회 4,578
07-10-09 조회 4,409
07-10-08 조회 5,258
07-10-08 조회 2.9만
07-10-07 조회 8,129
07-10-07 조회 7,750
07-10-06 조회 3,578
07-10-06 조회 4,422
07-10-05 조회 4,959
07-10-05 조회 1.5만
07-10-04 조회 2,868
07-10-03 조회 4,608
07-10-03 조회 5,928
07-10-02 조회 5,859