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

What is mysqli php?

521


Are parent constructors called implicitly inside a class constructor?

516


What is the difference between array_pop() and array_push()?

625


What is api laravel?

528


What are the string functions in php?

522






What is csrf token and why it is required?

538


What is use of count() function in php?

567


What is the use of array_search() in php?

533


How can we make a constant in php?

554


How is traits used in php?

537


What does == mean in php?

520


Is null in php?

530


Is php outdated 2019?

509


How to create a table using php?

540


What are the main error types in php and how do they differ?

832