Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,165,279 members, 7,860,647 topics. Date: Friday, 14 June 2024 at 01:42 PM |
Nairaland Forum / Science/Technology / Webmasters / Redirect A Page In Php? (638 Views)
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)
Redirect A Page In Php? by cyberworx(m): 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. |
(1) (Reply)
#10 In 1tutorial Guide On Web Hosting & Design:free Coupons Given For Each Guide / ##bonanza!free Ebook On Web Hosting And Design: Closed! Grab your own copy now / Do We Really Have Great Web Developers In Nigeria?
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 16 |