<form id="55n5d"></form>
    <form id="55n5d"></form> <noframes id="55n5d">

    <em id="55n5d"><address id="55n5d"></address></em>

        <form id="55n5d"></form>

        替換mine_content_type()函數

        php by 黃業興 at 2020-08-08

        1、發送郵件的時候需要mine_content_type()獲取文件類型。測試正常。

        2、上線到正式環境報錯,原來是沒有安裝開啟這個擴展。為了不修改正式環境配置。所以找到替換函數finfo_file();

        3、我的用法

        原來:$type = mine_content_type('文件路徑');

        修改:$finfo = finfo_open(FILEINFO_MIME_TYPE);$type = finfo_file($finfo,'文件路徑');finfo_close($finfo);

        這樣就OK!

        請關注我們微信公眾號:mw748219


        永久免费看A片无码网站宅男

          <form id="55n5d"></form>
          <form id="55n5d"></form> <noframes id="55n5d">

          <em id="55n5d"><address id="55n5d"></address></em>

              <form id="55n5d"></form>