header()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Sander
Forum Commoner
Posts: 38
Joined: Sat Aug 06, 2005 12:43 pm

header()

Post 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.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

Well you can use the header to make people browsers see a PHP page as an image.

That's cool.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

look up the HTTP RFC, it has all the legal responses you can send and talks about what they are for..
Post Reply