Home > DeveloperSection > Interviews > How many ways I can redirect a PHP page?

Posted on    June-13-2011 5:41 AM

 PHP PHP 
Ratings:
 1 Answer(s)
  2195  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Points:2550
Posted on    June-13-2011 12:00 AM

Here are the possible ways of php page redirection.

1. Using Java script: 
'; echo 'window.location.href="'.$filename.'";'; echo ''; echo ''; echo ''; echo ''; } } redirect('http://maosjb.com'); ?>

2. Using php function: header("Location:http://maosjb.com "); .       

Don't want to miss updates? Please click the below button!

Follow MindStick