geek stories and photography misadventures
PHP Redirect Page
Been busy lately. But I would just like to share some useful PHP basics (to all wannabe nerds out there) and also to make this site a little more useful to others, that is why i have a new category just for this epiphany. Ok here we go: PHP: How to Redirect a Page (to somewhere other than that page) Just put this code before the <html> tag and edit the blue colored text as you like: <?php header( 'Location: http://www.domain.com/new_page.html' ) ; ?>
We usually redirect a page if we just don't want it to go to the page where its suppose to go…..weird… anyway i find it very useful.
Cheers!
| Print article | This entry was posted by Joel on July 17, 2008 at 7:22 pm, and is filed under Web Development Tips. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |