PHP

PHP Redirect To Another Page

by Lars on April 6, 2011

PHP Redirect To Another Page

With PHP it is possible to redirect to another page using the header() network function. The header() function is used to send a raw HTTP header why it can easily be used transfer a user to a new page without clicking on a link. If you are not familiar with the header() function you need to be aware that just like in any other web programming language it is required to write the headers before the actual page content is sent. So if you experience any errors keep in mind that it is a common error to read code with e.g. include() or require() functions and have spaces or empty lines that are output before header() is called. In this tutorial I will show you in detail how to use header() to perform redirects in PHP.

[click to continue…]

{ 6 comments }

15+ Useful PHP Components, Techniques and Tutorials

June 8, 2010 PHP

PHP is one of the most popular development languages for building dynamic web applications today. Some of the most influential and popular open source CMS/Publishing platforms like WordPress, Joomla and Drupal all rely on PHP and many others do to. PHP offers many advantages; it is fast, stable, secure, easy to use and open source. [...]

Read the full article →

Build an Awesome Community News Feature for Your WordPress Blog

December 1, 2009 Development

In this article tripwire magazine provides a detailed tutorial on how to setup a Community News Feed solution in WordPress 2.8+. I use it at tripwire magazine and currently get 30-50 links submitted every day. It’s a good way to interact with users and peer blogs! Allowing your readers to provide interesting and relevant links [...]

Read the full article →

How to: jQuery Driven Social Bookmark Counters

April 17, 2009 Development

In this article tripwire magazine provides a tutorial on how the jQuery based Social Bookmarking Counters on the site was created. Most people are generally busy and this means that readers on a blog or website don’t time to waste on articles that are not really good. The main principle in web 2.0 and social [...]

Read the full article →