How many ways I can redirect a PHP page?
Answer Posted / rakesh kumar nautiyal
Page redirect
Description
If you want a PHP redirect script that redirects visitors
from a page to a specific URL then this is it. It sends the
user from one web page to a different web page address. It
is a good alternative to using the meta tag http-equiv
option.
The code
<?php/** * Place in a blank PHP page */// Change to the URL
you want to redirect to$URL="http://www.page.com";header
("Location: $URL");?>
Is This Answer Correct ? | 10 Yes | 4 No |
Post New Answer View All Answers
How do you check if a variable has been set in php?
What is difference between Method overriding and overloading in PHP?
Write a program to display reverse of any number?
What is purpose of @ in Php?
What does type casting mean in php? Explain with an example?
What is psr in php?
How to generate a form?
How to set session.gc_maxlifetime properly?
What's the difference between using mysql_ functions and pdo?
How can we submit form without a submit button?
What is isset in php?
What is the importance of php?
What is mysql_fetch_row?
How to download file in php?
What is the default time in seconds for which session data is considered valid?