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
Is learning php easy?
How to check a key exist in an array?
How can you retrieve a cookie value?
Does mysql need php?
How to enable error reporting in php?
Is php a dying language?
Explain me what is the w3c?
Tell me how to create a text file in php?
How will you calculate days between two dates in PHP?
Explain the difference between require() and require_once()?
How do you explain independent and dependent variables?
Tell me how can we pass the variable through the navigation between the pages?
What is difference between ksort() and usort() functions.
Tell us how can we access the data sent through the url with the post method?
Does facebook use php framework?