How many ways I can redirect a PHP page?

Answer Posted / rani

By using header
<?php
header('Location: http://www.example.com/');
?>

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use sessions in php?

714


What is difference between rest api and restful api?

722


How to open a file for reading?

754


How can you tell if a number is even or odd without using any condition or loop?

742


What is the difference between the include() and require() functions?

1128


Is a number php?

734


What is in php 7?

744


Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?

721


What is traits? How it is used in php?

763


Are php short tags acceptable to use?

721


How to include variables in double-quoted strings in php?

693


Tell me how can I display text with a php script?

729


What is the use of return in php?

659


Is echo a function in php?

715


How to connect to mysql from a php script?

745