Development Blog With Code Updates : Developercast.com

December 10, 2009

WebShop.com Blog: PHP Header(), Beyond Redirect

Filed under: Development — @ 1:51 pm

One of the most popular reasons to use the header function in PHP applications is to do a redirect, but the webshop.com blog wants to remind you that there’s more to it than just that.

If you are a web developer and you’ve ever worked with PHP you have probably come across the PHP header() function in the past. You most likely used it to implement a hard redirect; but you may not have understood exactly what was happening behind the scenes every time you call this handy function. Let’s take a look at what the header() function does and find some uses for it other than its most common use-redirects.

They look at what the header function is for, what HTTP headers are (and some examples) as well as a few examples of use outside of redirects including defining content types, response codes and cache control.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress