php修改響應(yīng)頭設(shè)置的方法:1、跳轉(zhuǎn)功能,代碼為【header('location:index.php')】;2、頁(yè)面刷新,代碼為【header('refresh:3;url=index.php')】。
php修改響應(yīng)頭設(shè)置的方法:
跳轉(zhuǎn)功能
header('location:index.php');
頁(yè)面刷新
header('refresh:3;url=index.php');
輸出圖片
header('Content-type:image/gif,image/png,image/jpg,image/jpeg');
下載內(nèi)容
header('Content-type:application/octet-stream');
相關(guān)學(xué)習(xí)推薦:PHP編程從入門到精通