Page 1 of 1

header()

Posted: Fri Sep 16, 2005 4:06 pm
by Sander
I'm getting the idea that you can do rather a lot with the header() function. Redirect, HTTP authentication, cache control and probably a lot more that I don't know anything about.

I've done some searching on Google to see what more you can do with it; perhaps some of it can come in handy sometime. I haven't really found a site that explains some neat stuff that you can do with it. (Yes, I've also looked on php.net but there isn't that much info about it there). Does anyone know some site with some good stuff about i?

Also, what kinda stuff do you use header() for? Just wondering if it's really used much for things other then redirecting.

Posted: Fri Sep 16, 2005 4:56 pm
by neophyte
Well you can use the header to make people browsers see a PHP page as an image.

That's cool.

Posted: Fri Sep 16, 2005 4:57 pm
by feyd
look up the HTTP RFC, it has all the legal responses you can send and talks about what they are for..