Lane, Ryan wrote:
Putting:
application/msword doc xls ppt
[...]
+ if ( $e == "xls" )
{
+ $mime= "application/vnd.ms-excel";
+ }
+ if ( $e == "ppt" ) {
+ $mime= "application/vnd.ms-powerpoint";
Just guessing here, but wouldn't it be possible to put something like:
application/msword doc
application/vnd.ms-excel xls
application/vnd.ms-powerpoint ppt
and skip the coding?
Mike