header("Location:/")解析

来源:互联网 发布:淘宝宝贝展示代码生成 编辑:程序博客网 时间:2024/06/06 15:44

1.首先建立一个文件夹test,然后建立一个test.php文件

  

<span style="font-size:14px;"><?phpecho "test";header("Location:/");</span>

2.运行test.php,可以看到,被重定向到了根目录下的index.html  或 index.php


0 0
原创粉丝点击