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

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

        调用未定义函数 exif_imagetype()

        Call to undefined function exif_imagetype()(调用未定义函数 exif_imagetype())
        1. <small id='w63EB'></small><noframes id='w63EB'>

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

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

                    <tbody id='w63EB'></tbody>
                  本文介绍了调用未定义函数 exif_imagetype()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试为 image-types 获取 Mime-Type,如下所示:

                  I am trying to get Mime-Type for image-types as follow:

                  if(!empty($_FILES['uploadfile']['name']) && $_FILES['uploadfile']['error'] == 0){    
                  
                      $file = $_FILES['uploadfile']['tmp_name'];
                      $file_type = image_type_to_mime_type(exif_imagetype($file));
                  
                      switch($file_type){
                  
                          // Codes Here
                  
                      }
                  
                  }
                  

                  但它总是给出错误Call to undefined function exif_imagetype().我在这里做错了什么?

                  But it always gives the error Call to undefined function exif_imagetype(). What am I doing wrong here?

                  推荐答案

                  php.ini 中启用以下扩展并重新启动服务器.

                  Enable the following extensions in php.ini and restart your server.

                  扩展=php_mbstring.dll
                  extension=php_exif.dll

                  extension=php_mbstring.dll
                  extension=php_exif.dll

                  然后检查phpinfo()看是否设置为on/off

                  Then check phpinfo() to see if it is set to on/off

                  这篇关于调用未定义函数 exif_imagetype()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  PHP Upload File Validation(PHP 上传文件验证)
                  PHP Error - Uploading a file(PHP 错误 - 上传文件)
                  How can I write tests for file upload in PHP?(如何在 PHP 中编写文件上传测试?)
                  php resizing image on upload rotates the image when i don#39;t want it to(php在上传时调整图像大小会在我不想要它时旋转图像)
                  How to send additional data using PLupload?(如何使用 PLupload 发送附加数据?)
                  change button text in js/ajax after mp4 =gt;mp3 conversion in php(在 php 中的 mp4 =gt;mp3 转换后更改 js/ajax 中的按钮文本)
                    • <bdo id='b0ALN'></bdo><ul id='b0ALN'></ul>
                    • <i id='b0ALN'><tr id='b0ALN'><dt id='b0ALN'><q id='b0ALN'><span id='b0ALN'><b id='b0ALN'><form id='b0ALN'><ins id='b0ALN'></ins><ul id='b0ALN'></ul><sub id='b0ALN'></sub></form><legend id='b0ALN'></legend><bdo id='b0ALN'><pre id='b0ALN'><center id='b0ALN'></center></pre></bdo></b><th id='b0ALN'></th></span></q></dt></tr></i><div id='b0ALN'><tfoot id='b0ALN'></tfoot><dl id='b0ALN'><fieldset id='b0ALN'></fieldset></dl></div>
                      <legend id='b0ALN'><style id='b0ALN'><dir id='b0ALN'><q id='b0ALN'></q></dir></style></legend>

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

                              <tbody id='b0ALN'></tbody>
                          • <tfoot id='b0ALN'></tfoot>