본문 바로가기

웹/PHP

header.php

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- 캐시 제어 메타태그 -->
    <!-- 캐시 만료기한을 없앰 -->
    
    <meta http-equiv="Expires" content="-1">
    <!-- 캐시 기능을 하지 않도록 -->
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="No-Cache">
    <?php
           header("Expires: -1");
           header("Pragma:no-cache"); // HTTP 1.0
           header("Cache-Control:no-cache, must-revalidate"); // HTTP 1.1
    ?>
    <title>실습용 게시판 </title>
    <link rel="stylesheet" href="style.css">
</head>
<body>




    <!--  include 하는 php에서 쓴다 
</body>
</html>
     -->

' > PHP' 카테고리의 다른 글

join_form.php  (0) 2019.11.26
index.php  (0) 2019.11.26
db.php  (0) 2019.11.26
board.sql / db.sql  (0) 2019.11.26
게시판 만들기  (0) 2019.11.25