久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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跳轉(zhuǎn)無效怎么辦

      php利用header跳轉(zhuǎn)無效的解決方法:1、找到并打開php.ini配置文件;2、將output_buffering = Off修改為output_buffering = 4096;3、重啟服務(wù)器。

      php利用header跳轉(zhuǎn)無效怎么辦

      本文操作環(huán)境:windows10系統(tǒng)、php 7、thinkpad t480電腦。

      解決方法:

      1、修改php.ini;

      2、找到 output_buffering=Off 將其修改為 output_buffering=4096;

      3、重啟服務(wù)器。

      在PHP中用header("location:test.php")進行跳轉(zhuǎn)要注意以下幾點:

      1、location和“:”號間不能有空格,否則會出錯.//phpfensi.com

      2、在用header前不能有任何的輸出,包括include的頁面中標簽“?>”后不能有空格.

      3、header后的PHP代碼還會被執(zhí)行.

      PHP的 header 跳轉(zhuǎn)之前不能有任何內(nèi)容輸出,因為PHP開始執(zhí)行的時候就已經(jīng)向瀏覽器送出HTTP頭信息,之后就不再允許更改了。

      但是如果必須要在輸出之后再處理header信息的話可以使用 ob_start() ob_end_flush() 來緩存一下要發(fā)送的內(nèi)容,等到header繼續(xù)再發(fā)送內(nèi)容。

      推薦學習:php培訓

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