Redirect A Page In Php? - Webmasters - Nairaland
Nairaland Forum › Science/Technology › Webmasters › Redirect A Page In Php? (766 Views)
| Redirect A Page In Php? by cyberworx(op): 1:55pm On Mar 21, 2016 |
hello friends i want to know How to redirect a page in PHP? |
| Re: Redirect A Page In Php? by Jinf: 3:46pm On Mar 21, 2016 |
Use --- header("location: Newpage.php " ) ; |
| Re: Redirect A Page In Php? by ps3o(m): 6:13pm On Mar 21, 2016 |
| Re: Redirect A Page In Php? by Adesege(m): 7:14pm On Mar 21, 2016 |
ps3o:The header function, by default, stops running any block of code after it. So exit; is really not important cos the function will exit with or without it. |
| Re: Redirect A Page In Php? by ps3o(m): 12:41am On Mar 22, 2016 |
Adesege:I know what I mean when I put exit. exit serves as a break to stop the code below from being executed. many times when ppl use include or require_once and there happens to be an error, the exit stops the below code from execution. |
| Re: Redirect A Page In Php? by Adesege(m): 2:18pm On Mar 23, 2016 |
ps3o:You are right. But header function will exit immediately it is executed thereby not executing codes after it. exit; and return; does the same thing. |
How To Rank Your Blog Articles On Search Engine First Page Within 30 Minutes • HELP: My WP Posts Redirects To A Page • Active 15k Likes Page In Exchange Of Two .com.ng Domain. • 2 • 3 • 4
Pupolar Tech Blogger Is Tying The Knot Today! -jidetheblogger • I Need Urgent Help!!! PHP DATE Is Giving Me Issues • Kindly Rate My New Site