Page 1 of 1
header tutorial
Posted: Mon Oct 27, 2003 6:02 pm
by d3ad1ysp0rk
everything I've read on headers so far has showed you how to send headers, ie.
Code: Select all
header('Content-Type: application/pdf');
how would you check what the content type, browser type, etc is?
Thanks in advance for help..
Posted: Mon Oct 27, 2003 6:08 pm
by m3rajk
there's already a thread on this in the tutorial section that developed from the large number of stickies
viewtopic.php?t=1157
Posted: Mon Oct 27, 2003 6:10 pm
by JAM
If I understood correctly;
For the types, this might be interesting.
http://se.php.net/manual/en/function.mi ... t-type.php
Combine that with
http://se.php.net/manual/en/function.get-browser.php to fit your needs.
Posted: Mon Oct 27, 2003 6:19 pm
by d3ad1ysp0rk
m3rajk wrote:there's already a thread on this in the tutorial section that developed from the large number of stickies
viewtopic.php?t=1157
that tutorial is like the other ones i've been looking at; it shows the proper way to send header information
the basic jist of the whole tutorial was to either not include white space before using headers, or use ob_flush.
I'm looking for something on actually receiving and interpreting headers.
and Jam, thats sort of what I want, but i'm looking for the browser version (and I would use javascript, but you can't use JS in AIM windows

)
thanks
Posted: Mon Oct 27, 2003 6:51 pm
by JAM
Of course, no.
If you stated that in the question, we could respond accordingly also.

Posted: Mon Oct 27, 2003 7:05 pm
by d3ad1ysp0rk
sorry i wasnt exactly sure how to word it without making it sound like I wanted source code from you..
Posted: Mon Oct 27, 2003 7:09 pm
by JAM
=)
No offence taken anyways. I'm used to that we think differently...
However, the get_browser() function sounds like it will give you information about the brower version.
Code: Select all
...
<b>majorver:</b> 4<br />
<b>minorver:</b> 5<br />
<b>browser:</b> Netscape<br />
<b>version:</b> 4<br />
...
Wouldn't that work for your piece of project?