久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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實現(xiàn)要跳轉(zhuǎn)的頁面刷新一次

      php實現(xiàn)要跳轉(zhuǎn)的頁面刷新一次的方法:首先打開相應的PHP頁面代碼;然后通過header實現(xiàn)跳轉(zhuǎn);最后通過“header('refresh:3; url=index.php');”實現(xiàn)跳轉(zhuǎn)并刷新即可。

      php實現(xiàn)要跳轉(zhuǎn)的頁面刷新一次

      本文操作環(huán)境:windows7系統(tǒng)、PHP7.1版,DELL G3電腦

      php實現(xiàn)要跳轉(zhuǎn)的頁面刷新一次

      代碼如下:

      PHP 頁面跳轉(zhuǎn):

      // 只是跳轉(zhuǎn),所以一定要用die();或者exit;終止下一步操作; header('location:index.php'); exit; // 等待3秒,跳轉(zhuǎn)并刷新 header('refresh:3; url=index.php');

      相關(guān)介紹:

      header() 函數(shù)向客戶端發(fā)送原始的 HTTP 報頭。

      認識到一點很重要,即必須在任何實際的輸出被發(fā)送之前調(diào)用 header() 函數(shù)(在 PHP 4 以及更高的版本中,您可以使用輸出緩存來解決此問題):

      <html> <?php // 結(jié)果出錯 // 在調(diào)用 header() 之前已存在輸出 header('Location: http://www.example.com/'); ?>

      語法

      header(string,replace,http_response_code)

      推薦學習:《PHP視頻教程》

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