应该是什么内容类型才能打开用户上传的php可读格式的文档文件


What should be the Content-type to open doc file uploaded by user in readable format in php?

在php中打开用户上传的可读格式文档文件的内容类型应该是什么?

我使用了以下格式:

$headers1 .= "Content-type:text/html;charset=iso-8859-1" . "'n";

此处文件不是以可读格式打开的。

您可以尝试使用此

<?php header('Content-type: application/vnd.oasis.opendocument.text');?>