久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<legend id='K0UTJ'><style id='K0UTJ'><dir id='K0UTJ'><q id='K0UTJ'></q></dir></style></legend>
      <bdo id='K0UTJ'></bdo><ul id='K0UTJ'></ul>

  1. <tfoot id='K0UTJ'></tfoot>

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

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

    1. 在 PHP 中增加 max_execution_time ?

      Increase max_execution_time in PHP?(在 PHP 中增加 max_execution_time ?)
      <i id='9yS9H'><tr id='9yS9H'><dt id='9yS9H'><q id='9yS9H'><span id='9yS9H'><b id='9yS9H'><form id='9yS9H'><ins id='9yS9H'></ins><ul id='9yS9H'></ul><sub id='9yS9H'></sub></form><legend id='9yS9H'></legend><bdo id='9yS9H'><pre id='9yS9H'><center id='9yS9H'></center></pre></bdo></b><th id='9yS9H'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='9yS9H'><tfoot id='9yS9H'></tfoot><dl id='9yS9H'><fieldset id='9yS9H'></fieldset></dl></div>

        <bdo id='9yS9H'></bdo><ul id='9yS9H'></ul>

          • <small id='9yS9H'></small><noframes id='9yS9H'>

          • <legend id='9yS9H'><style id='9yS9H'><dir id='9yS9H'><q id='9yS9H'></q></dir></style></legend>

                  <tbody id='9yS9H'></tbody>
                <tfoot id='9yS9H'></tfoot>

              • 本文介紹了在 PHP 中增加 max_execution_time ?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                問(wèn)題描述

                限時(shí)送ChatGPT賬號(hào)..

                我正在嘗試將大文件上傳到我的服務(wù)器(我的服務(wù)器支持 post_max_size 192mb 和 max_execution_time 600 秒).當(dāng)我上傳 100mb 文件時(shí),執(zhí)行將在 600 秒后停止,因此文件不會(huì)上傳到服務(wù)器.如何在 PHP 中增加 max_execution_time(僅用于文件上傳過(guò)程)?我試過(guò)了:

                I'm trying to upload large files to my server (my server support post_max_size 192mb and max_execution_time 600 sec). When I upload 100mb files execution will stop after 600 sec so files are not uploaded to the server. How can I increase max_execution_time in PHP (only for the file uploading process)? I have tried:

                ini_set ( 'max_execution_time', 1200); 
                if(move_uploaded_file($_FILES['Video']['tmp_name'],$tmppath)) {
                  // ...
                } 
                

                有什么想法可以克服這個(gè)問(wèn)題嗎?

                Any ideas how I can overcome this?

                推薦答案

                將此添加到 htaccess 文件中(并查看下面添加的編輯注釋):

                Add this to an htaccess file (and see edit notes added below):

                <IfModule mod_php5.c>
                   php_value post_max_size 200M
                   php_value upload_max_filesize 200M
                   php_value memory_limit 300M
                   php_value max_execution_time 259200
                   php_value max_input_time 259200
                   php_value session.gc_maxlifetime 1200
                </IfModule>
                

                其他資源和信息:

                • https://www.php.net/manual/en/info.configuration.php

                https://www.looklinux.com/how-to-set-php-maximum-execution-time-in-an-htaccess-file/

                2021 年

                隨著 PHP 和 Apache 的發(fā)展和壯大,我認(rèn)為花點(diǎn)時(shí)間提及一些需要考慮的事情和可能的陷阱"對(duì)我來(lái)說(shuō)很重要.考慮:

                As PHP and Apache evolve and grow, I think it is important for me to take a moment to mention a few things to consider and possible "gotchas" to consider:

                • PHP 可以作為模塊或 CGI 運(yùn)行.建議以 CGI 運(yùn)行,因?yàn)樗鼮楣粝蛄縿?chuàng)造了很多機(jī)會(huì) [閱讀更多].如果加載了 中的特定模塊,作為模塊運(yùn)行(更安全的選項(xiàng))將觸發(fā)要使用的設(shè)置.
                • 答案表明在第一行寫(xiě)mod_php5.c.如果您使用的是 PHP 7,則將其替換為 mod_php7.c.
                • 有時(shí)在更改 .htaccess 文件后,重新啟動(dòng) Apache 或 NGINX 將不起作用.最常見(jiàn)的原因是您正在運(yùn)行 PHP-FPM,它作為一個(gè)單獨(dú)的進(jìn)程運(yùn)行.您也需要重新啟動(dòng)它.
                • 請(qǐng)記住,這些設(shè)置通常在您的 php.ini 配置文件中定義.此方法通常僅在您的托管服務(wù)提供商不授予您更改這些文件的權(quán)限時(shí)才有用.在您可以編輯 PHP 配置的情況下,建議您在那里應(yīng)用這些設(shè)置.
                • 最后,需要注意的是,并非所有 php.ini 設(shè)置都可以通過(guò) .htaccess 文件進(jìn)行配置.php.ini 指令的文件列表可以在在這里找到,并且唯一可以更改的是可更改列中具有模式 PHP_INI_ALLPHP_INI_PERDIR 中的那些.
                • PHP can be run as a module or as CGI. It is not recommended to run as CGI as it creates a lot of opportunities for attack vectors [Read More]. Running as a module (the safer option) will trigger the settings to be used if the specific module from <IfModule is loaded.
                • The answer indicates to write mod_php5.c in the first line. If you are using PHP 7, you would replace that with mod_php7.c.
                • Sometimes after you make changes to your .htaccess file, restarting Apache or NGINX will not work. The most common reason for this is you are running PHP-FPM, which runs as a separate process. You need to restart that as well.
                • Remember these are settings that are normally defined in your php.ini config file(s). This method is usually only useful in the event your hosting provider does not give you access to change those files. In circumstances where you can edit the PHP configuration, it is recommended that you apply these settings there.
                • Finally, it's important to note that not all php.ini settings can be configured via an .htaccess file. A file list of php.ini directives can be found here, and the only ones you can change are the ones in the changeable column with the modes PHP_INI_ALL or PHP_INI_PERDIR.

                這篇關(guān)于在 PHP 中增加 max_execution_time ?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                enable SOAP on PHP(在 PHP 上啟用 SOAP)
                Get received XML from PHP SOAP Server(從 PHP SOAP 服務(wù)器獲取接收到的 XML)
                not a valid AllXsd value(不是有效的 AllXsd 值)
                PHP SoapClient: SoapFault exception Could not connect to host(PHP SoapClient:SoapFault 異常無(wú)法連接到主機(jī))
                Implementation of P_SHA1 algorithm in PHP(PHP中P_SHA1算法的實(shí)現(xiàn))
                Sending a byte array from PHP to WCF(將字節(jié)數(shù)組從 PHP 發(fā)送到 WCF)
                • <legend id='lylh0'><style id='lylh0'><dir id='lylh0'><q id='lylh0'></q></dir></style></legend>

                  <tfoot id='lylh0'></tfoot>

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

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

                          <tbody id='lylh0'></tbody>
                          <bdo id='lylh0'></bdo><ul id='lylh0'></ul>

                          主站蜘蛛池模板: 精品一区国产 | 午夜影院在线 | av中文在线观看 | 2022精品国偷自产免费观看 | 亚洲淫视频 | 免费一区二区 | 精品视频国产 | 久久综合国产精品 | 中文字幕第一页在线 | 成人国产在线视频 | 丝袜 亚洲 另类 欧美 综合 | 五月婷婷 六月丁香 | 亚洲日本中文 | 欧美日韩国产一区二区三区 | 99免费视频 | 美女逼网站 | 亚洲高清在线免费观看 | 久久亚洲欧美日韩精品专区 | 午夜免费福利影院 | 欧美一区二区三区,视频 | 亚洲天堂日韩精品 | 91.com在线观看| 又爽又黄axxx片免费观看 | 国产精品久久久久久久久久 | 国产精品欧美一区二区三区不卡 | 99久久久无码国产精品 | 亚洲精品国产a久久久久久 中文字幕一区二区三区四区五区 | www.久久久久久久久久久 | 亚洲一区二区三区四区五区午夜 | 国产成人精品a视频一区www | 久久精品亚洲欧美日韩精品中文字幕 | 国产精品久久亚洲 | 久久久久久av | 黄色网址av | 久久亚洲欧美日韩精品专区 | 亚洲h视频 | 特级黄一级播放 | 午夜精品久久久久久久久久久久久 | 涩涩操| 国产无人区一区二区三区 | 亚洲精品在线观看视频 |