PHP头位置与php_redirect [英] php header location vs php_redirect

查看:119
本文介绍了PHP头位置与php_redirect的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PHP中的函数HTTP_redirectheader location有什么区别?

What's the difference between the function "HTTP_redirect" and "header location" in PHP ?

何时必须使用函数HTTP_redirect

何时我必须使用函数标题位置

看:
http://php.net/manual/fr/function.http-redirect.php - - > HTTP_redirect
手册 http://php.net/manual/fr/ function.header.php - >手册的功能标题

Look that: http://php.net/manual/fr/function.http-redirect.php --> Manual for HTTP_redirect http://php.net/manual/fr/function.header.php --> Manual for the function header

推荐答案

http_redirect 基本上是一个辅助函数,通过允许你传递一个GET数据的数组,它使得使用标题位置更容易。

http_redirect is basically a helper function, making it easier to use header location by allowing you to pass an array for GET data.

这篇关于PHP头位置与php_redirect的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆