久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php header的用法是什么

      php header的用法是:1、跳轉頁面;2、聲明【content-type】;3、返回response狀態(tài)碼;4、在某個時間后執(zhí)行跳轉;5、控制瀏覽器緩存;6、執(zhí)行http驗證。

      php header的用法是什么

      相關學習推薦:php編程(視頻)

      php header的用法是:

      1. 跳轉頁面

      header('Location:'.$url);  //Location和":"之間無空格

      2. 聲明content-type

      header('content-type:text/html;charset=utf-8');

      3. 返回response狀態(tài)碼

      header('HTTP/1.1 404 Not Found');

      4. 在某個時間后執(zhí)行跳轉

      header('Refresh: 10; url=http://www.baidu.com/');  //10s后跳轉

      5. 控制瀏覽器緩存

      header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache");

      6. 執(zhí)行http驗證

      header('HTTP/1.1 401 Unauthorized'); header('WWW-Authenticate: Basic realm="Top Secret"');

      7. 執(zhí)行下載操作

      header('Content-Type: application/octet-stream'); //設置內(nèi)容類型 header('Content-Disposition: attachment; filename="example.zip"'); //設置MIME用戶作為附件 header('Content-Transfer-Encoding: binary'); //設置傳輸方式 header('Content-Length: '.filesize('example.zip')); //設置內(nèi)容長度

      想了解

      贊(0)
      分享到: 更多 (0)
      ?
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號