<legend id='eu1se'><style id='eu1se'><dir id='eu1se'><q id='eu1se'></q></dir></style></legend>

      <i id='eu1se'><tr id='eu1se'><dt id='eu1se'><q id='eu1se'><span id='eu1se'><b id='eu1se'><form id='eu1se'><ins id='eu1se'></ins><ul id='eu1se'></ul><sub id='eu1se'></sub></form><legend id='eu1se'></legend><bdo id='eu1se'><pre id='eu1se'><center id='eu1se'></center></pre></bdo></b><th id='eu1se'></th></span></q></dt></tr></i><div id='eu1se'><tfoot id='eu1se'></tfoot><dl id='eu1se'><fieldset id='eu1se'></fieldset></dl></div>
      <tfoot id='eu1se'></tfoot>
        • <bdo id='eu1se'></bdo><ul id='eu1se'></ul>

        <small id='eu1se'></small><noframes id='eu1se'>

      1. 通过 PHP 获取 MIME 类型

        时间:2023-05-29
          • <i id='KSHgZ'><tr id='KSHgZ'><dt id='KSHgZ'><q id='KSHgZ'><span id='KSHgZ'><b id='KSHgZ'><form id='KSHgZ'><ins id='KSHgZ'></ins><ul id='KSHgZ'></ul><sub id='KSHgZ'></sub></form><legend id='KSHgZ'></legend><bdo id='KSHgZ'><pre id='KSHgZ'><center id='KSHgZ'></center></pre></bdo></b><th id='KSHgZ'></th></span></q></dt></tr></i><div id='KSHgZ'><tfoot id='KSHgZ'></tfoot><dl id='KSHgZ'><fieldset id='KSHgZ'></fieldset></dl></div>

              <small id='KSHgZ'></small><noframes id='KSHgZ'>

                <legend id='KSHgZ'><style id='KSHgZ'><dir id='KSHgZ'><q id='KSHgZ'></q></dir></style></legend>
                <tfoot id='KSHgZ'></tfoot>
                  <tbody id='KSHgZ'></tbody>
                  <bdo id='KSHgZ'></bdo><ul id='KSHgZ'></ul>
                  本文介绍了通过 PHP 获取 MIME 类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我可以在本地访问文件,我需要获取它们的 MIME 类型.在 WAMP/LAMP、CodeIgniter 和 Zend 库中工作.获取 MIME 类型信息的最佳方法是什么?

                  I have local access to files, which I need to get their MIME types. Working in WAMP/LAMP, CodeIgniter, and Zend libraries. What's the best way to get MIME type information?

                  推荐答案

                  没有简单的方法.你可以试试:
                  http://www.php.net/manual/en/function.finfo-file.php

                  There's no easy way. You could try:
                  http://www.php.net/manual/en/function.finfo-file.php

                  // return mime type ala mimetype extension
                  $finfo = finfo_open(FILEINFO_MIME_TYPE);
                  

                  当然,这假设您可以安装 PECL 扩展.

                  Of course, this assumes you can install PECL extensions.

                  这篇关于通过 PHP 获取 MIME 类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何使用 Zend 框架读取控制器上的 application.ini 下一篇:Zend Forms 模块包含路径

                  相关文章

                  <tfoot id='4Nsin'></tfoot>
                • <i id='4Nsin'><tr id='4Nsin'><dt id='4Nsin'><q id='4Nsin'><span id='4Nsin'><b id='4Nsin'><form id='4Nsin'><ins id='4Nsin'></ins><ul id='4Nsin'></ul><sub id='4Nsin'></sub></form><legend id='4Nsin'></legend><bdo id='4Nsin'><pre id='4Nsin'><center id='4Nsin'></center></pre></bdo></b><th id='4Nsin'></th></span></q></dt></tr></i><div id='4Nsin'><tfoot id='4Nsin'></tfoot><dl id='4Nsin'><fieldset id='4Nsin'></fieldset></dl></div>

                  • <bdo id='4Nsin'></bdo><ul id='4Nsin'></ul>

                    <small id='4Nsin'></small><noframes id='4Nsin'>

                  1. <legend id='4Nsin'><style id='4Nsin'><dir id='4Nsin'><q id='4Nsin'></q></dir></style></legend>