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
Tell me what is the definition of a session?
How arrays are used in php?
What is abstract class in php?
Explain how we can retrieve the data in the result set of mysql using php?
How can you retrieve a cookie value?
How to create a mysql connection?
What is cookie in php with example?
How to get ip address of clients machine?
Are parent constructors called implicitly inside a class constructor?
Is php procedural or oop?
Why php is used in html?
How is a constant defined in a PHP script?
What is the main difference between php 4 and php 5?
What is the difference between indexed and associative array?
What is the use of preg_match in php?