【php的header和asp中的redirect比较_PHP教程】教程文章相关的互联网学习教程文章

php的header和asp中的redirect比较

asp中实现重定向是用response.redirect 函数: 用法一例: response.redirect "../test.asp" php中也有类似函数:header 用法一例: header("location:../test.php"); 但是两者是有区别的. asp的redirect函数可以在向客户发送头文件后起作用. 如 <html><head></head><body> <%response.redirect "../test.asp"%> </body></html> 查是php中下例代码会报错: <html><head></head><body> <? header("location:../test.php"); ?> </body></h...

php的header和asp中的redirect比较_PHP教程

asp中实现重定向是用response.redirect 函数: 用法一例: response.redirect "../test.asp" php中也有类似函数:header 用法一例: header("location:../test.php"); 但是两者是有区别的. asp的redirect函数可以在向客户发送头文件后起作用. 如 查是php中下例代码会报错: header("location:../test.php"); ?> 只能这样: header("location:../test.php"); ?> ... 即header函数之前不能向客户发送任何数据. 再看下面一例: asp中...

php的header和asp中的redirect比较

asp中实现重定向是用response.redirect 函数: 用法一例: response.redirect "../test.asp" php中也有类似函数:header 用法一例: header("location:../test.php"); 但是两者是有区别的. asp的redirect函数可以在向客户发送头文件后起作用. 如 查是php中下例代码会报错: header("location:../test.php"); ?> 只能这样: header("location:../test.php"); ?> ... 即header函数之前不能向客户发送任何数据. 再看下面一例: ...

php的header和asp中的redirect比较_php基础

asp中实现重定向是用response.redirect 函数: 用法一例: response.redirect "../test.asp" php中也有类似函数:header 用法一例: header("location:../test.php"); 但是两者是有区别的. asp的redirect函数可以在向客户发送头文件后起作用. 如 查是php中下例代码会报错: header("location:../test.php"); ?> 只能这样: header("location:../test.php"); ?> ... 即header函数之前不能向客户发送任何数据. 再看下面一例: asp中...