How many ways I can redirect a PHP page?

Answer Posted / laxmikant

1- <script>location.replace("index.php");</script>
2-<script>window.href="index.php";</script>
3-header("Location:index.php");
4-<meta http-equiv="refresh" content="5; url=newurl.html">

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you propagate a session id?

734


Can a trait extend a class php?

735


Write a statement to show the joining of multiple comparisons in php?

769


Explain the difference between urlencode and urldecode?

782


What is data structure in php?

754


What are the differences between PHP3 and PHP4 and PHP5? what is the current stable version of PHP?

872


What is difference between rest and http?

735


What is the difference between die () and exit () in php?

722


Explain mysql_error().

761


Which function you can use in php to open a file for reading or writing or for both?

859


What are the special characters you need to escape in double-quoted stings?

801


How do you pass a variable by value?

776


Why do we use php?

728


What is the function file_get_contents() usefull for?

745


Explain the difference between array_merge() and array_combine()?

746