7 Feb
2011
7 Feb
'11
10:45 p.m.
Are we talking about merging the elements into the one function-call? send_file( $contents, type=>'text/foo', as_attachment=>'myfile.foo' )
My thoughts are more of fixing send_file itself, so Matthew (and anyone else) could just do send_file($filename).
I like this idea, mostly because it makes it easier to remember and is more logical. Send Headers, Send File. But Richard's idea with some parameters being optional for backward compatability is also good. Matt