siddscool19 Posted January 19, 2009 Share Posted January 19, 2009 I want to know from where I can learn about headers for example <?php $file = 'monkey.gif'; if (file_exists($file)) { header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.basename($file)); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); header('Content-Length: ' . filesize($file)); ob_clean(); flush(); readfile($file); exit; } ?> I have taken these codes from php.net I would like to know from where to learn about headers because I see that they play a really good role in php and can help a lot. So I wanted to know that from where to learn about them in detail and their uses.... Thanks Quote Link to comment https://forums.phpfreaks.com/topic/141440-about-headers/ Share on other sites More sharing options...
trq Posted January 19, 2009 Share Posted January 19, 2009 Search for and then through the hyper text transfer protocol specifications. Quote Link to comment https://forums.phpfreaks.com/topic/141440-about-headers/#findComment-740353 Share on other sites More sharing options...
siddscool19 Posted January 19, 2009 Author Share Posted January 19, 2009 Can u give me a site.... I did try but no good Quote Link to comment https://forums.phpfreaks.com/topic/141440-about-headers/#findComment-740363 Share on other sites More sharing options...
trq Posted January 19, 2009 Share Posted January 19, 2009 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html Quote Link to comment https://forums.phpfreaks.com/topic/141440-about-headers/#findComment-740366 Share on other sites More sharing options...
.josh Posted January 19, 2009 Share Posted January 19, 2009 Can u give me a site.... I did try but no good I tried googling hypertext transfer protocol specifications as Daniel0 suggested and I got absolutely nothing. NOTHING! wtf is up with that? You would think something would come up. I mean first off a frickin' wikipedia entry is first on the list. That just proves what a bunk service google is, because we all know the lack of value in wikipedia. And the 2nd entry is from some place called w3.org. And I do see that thorpe's link did come up as 3rd listing, which is also a page from this w3.org place. But wtf is that w3.org? Is that some kind of script kiddie lingo for "we"? 'we' what? Stupid kids these days, with their wes and 'wiis' and 'wee'. Is it really too much to have a learnaboutheaders.com show up when I go to google? If google wants to make it as a company they need to get on the ball with this searching thing. Otherwise they are just gonna be another no name company run into the ground. Quote Link to comment https://forums.phpfreaks.com/topic/141440-about-headers/#findComment-740408 Share on other sites More sharing options...
trq Posted January 19, 2009 Share Posted January 19, 2009 But wtf is that w3.org You are kidding right? Quote Link to comment https://forums.phpfreaks.com/topic/141440-about-headers/#findComment-740410 Share on other sites More sharing options...
nrg_alpha Posted January 19, 2009 Share Posted January 19, 2009 lol Quote Link to comment https://forums.phpfreaks.com/topic/141440-about-headers/#findComment-740416 Share on other sites More sharing options...
Daniel0 Posted January 19, 2009 Share Posted January 19, 2009 Can u give me a site.... I did try but no good [...] as Daniel0 suggested [...] Wasn't me Quote Link to comment https://forums.phpfreaks.com/topic/141440-about-headers/#findComment-740420 Share on other sites More sharing options...
.josh Posted January 19, 2009 Share Posted January 19, 2009 Can u give me a site.... I did try but no good [...] as Daniel0 suggested [...] Wasn't me oops, my bad. I meant thorpe. Far be it from you to ever suggest some lame site like w3.org Quote Link to comment https://forums.phpfreaks.com/topic/141440-about-headers/#findComment-740424 Share on other sites More sharing options...
GingerRobot Posted January 19, 2009 Share Posted January 19, 2009 But wtf is that w3.org You are kidding right? Are you kidding in asking that CV was kidding? Quote Link to comment https://forums.phpfreaks.com/topic/141440-about-headers/#findComment-740711 Share on other sites More sharing options...
trq Posted January 19, 2009 Share Posted January 19, 2009 But wtf is that w3.org You are kidding right? Are you kidding in asking that CV was kidding? No. I assume all web developers know who the world wide web consortium are and what there domain is. Quote Link to comment https://forums.phpfreaks.com/topic/141440-about-headers/#findComment-740713 Share on other sites More sharing options...
GingerRobot Posted January 19, 2009 Share Posted January 19, 2009 Yeah, but CV's post was literally dripping with sarcasm. Edit: Gah, they've got me too. I now seem to be using 'literally' to mean anything but literally. Quote Link to comment https://forums.phpfreaks.com/topic/141440-about-headers/#findComment-740714 Share on other sites More sharing options...
trq Posted January 19, 2009 Share Posted January 19, 2009 Yeah, but CV's post was literally dripping with sarcasm. Edit: Gah, they've got me too. I now seem to be using 'literally' to mean anything but literally. Indeed, reading it again I see. Sometimes, I guess I'm just a little too dry for sarcasm. Quote Link to comment https://forums.phpfreaks.com/topic/141440-about-headers/#findComment-740717 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.