epalla.com

reddit reddit

Kristen Bell's sloth melt down on Ellen
Santorum Tells Sick Kid Not To Complain About $1 Million Drug Costs Because People Pay $900 For An iPad
The front page of Reddit on the front page of The Star Tribune. (x-post)The front page of Reddit on the front page of The Star Tribune. (x-post)
How I feel as a-
Like a boss.
"If they want to say God sent me, that’s fine. I think Reddit did it." - TheLake
1 Raptor, 1 Mustang1 Raptor, 1 Mustang
Graffiti from ScotlandGraffiti from Scotland
Pac-man dress... hotPac-man dress... hot
The captain is coming! Quick, do something important!

Updated: 02/08/12 06:00 am

Latest Comments

JamesI know, Fuck Javascript. I spent at least an hour implementing a
SatanThis is exactly what I was looking for, didn't notice the differe
Mattk.
92.625sean, all i think your's is good for is hanging clothes on. ma
MattNope. That all came to a screeching halt when I messed up my ank
seanpr123... Still hitting the stationary?
MattFor some reason the idea of Drew rocking out to this song puts a
DrewLOL! I have been guilty of listening to this song as well. Very
JoshAbout every 5 years or so I need a reminder of how amazing the Mi
JoshSo I saw this one opening night, also in 3D, and have been waitin

A
u
g
19

Apparently IE (including IE7) is retarded when it comes to live downloads from a database. This problem manifests itself in particular when it comes to downloading PDFs. That means when you try to load a pdf out of a database with the following incredibly common code snippet:

header("Content-length: $size");
header("Content-type: $type");
header("Content-Disposition: attachment; filename=$name");

you can “Save Target As” with IE but not actually open it directly from a link. It works fine in Firefox. After much obnoxious tinkering and searching, I discovered that adding:

header("Cache-control: private");
header("Pragma: public");

just makes it magically work.