php로 엑셀 만들기 입니다. 정보
PHP php로 엑셀 만들기 입니다.
본문
<?
$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>
                        
                추천
                
0
                
    0
 
 
댓글 0개