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


Please Help Members By Posting Answers For Below Questions

How do you check if a variable has been set in php?

714


What is difference between Method overriding and overloading in PHP?

764


Write a program to display reverse of any number?

673


What is purpose of @ in Php?

847


What does type casting mean in php? Explain with an example?

733


What is psr in php?

793


How to generate a form?

806


How to set session.gc_maxlifetime properly?

769


What's the difference between using mysql_ functions and pdo?

748


How can we submit form without a submit button?

746


What is isset in php?

721


What is the importance of php?

708


What is mysql_fetch_row?

760


How to download file in php?

759


What is the default time in seconds for which session data is considered valid?

795