The php header is compared with the redirect in asp. Response is used to implement redirection in asp. redirect function: Usage example: response. redirect .. test. in aspphp, there are also similar functions: header Usage example: header (location :
Compare the php header with the redirect in asp. Read the php header and the redirect in asp, and use response to implement redirection in asp. redirect function: Usage example: response. redirect .. /test. aspphp also has a similar function: header
Header () in PHP &html–refresh (Redirect) to location (URL) in X seconds,headerinphp
Case 1:redirect a page to a URL without waiting in PHP.
1
header("Location: index.php");
Case 2:redirect a page to the URL after waiting
function Header function:
Page Jump
HTTP header informationHeader information has many functions, the most important of which are the following:1, jumpWhen the browser accepts the location:xxxx in the header, it automatically jumps to the URL
Case 1:redirect a page to a URL without waiting in PHP.
1
header("Location: index.php");
Case 2:redirect a page to the URL after waiting for X seconds in PHP.
12345
header("Refresh: 5; url=index.php")
PHP uses the header redirection failure solution to disable the phpheader redirection. PHP uses the header jump failure solution. phpheader jump failure this article describes how PHP uses the header jump failure solution and shares it with you for
Header () in PHP & html-Refresh (Redirect) to Location (URL) in X seconds, headerinphpCase 1: Redirect a page to a URL without waiting in PHP.
1
header("Location: index.php");
Case 2: Redirect a page to an URL after waiting for X
This article introduces how to resolve Warning: cannot modify header information-headers already sent by in php when headers cannot be redirected ......
The following message is often displayed: cannot modify header information-headers already sent
In general, our management background is the use of frameset to layout, so if we set the login session time in the background, then after the expiration of the session, then we must be in the PHP file to determine processing.After you have
To implement redirection in ASP is to use the Response.Redirect function:
To use one example:
Response.Redirect ". /test.asp "
There are similar functions in PHP: Header
To use one example:
Header ("Location:.. /test.php ");
But there is a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.