pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

<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="kw2i2oy" 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="cosayeq" 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 ?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

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

                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)) {
                  // ...
                } 
                

                有什么想法可以克服這個問題嗎?

                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 的發展和壯大,我認為花點時間提及一些需要考慮的事情和可能的陷阱"對我來說很重要.考慮:

                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 運行.建議以 CGI 運行,因為它為攻擊向量創造了很多機會 [閱讀更多].如果加載了 中的特定模塊,作為模塊運行(更安全的選項)將觸發要使用的設置.
                • 答案表明在第一行寫mod_php5.c.如果您使用的是 PHP 7,則將其替換為 mod_php7.c.
                • 有時在更改 .htaccess 文件后,重新啟動 Apache 或 NGINX 將不起作用.最常見的原因是您正在運行 PHP-FPM,它作為一個單獨的進程運行.您也需要重新啟動它.
                • 請記住,這些設置通常在您的 php.ini 配置文件中定義.此方法通常僅在您的托管服務提供商不授予您更改這些文件的權限時才有用.在您可以編輯 PHP 配置的情況下,建議您在那里應用這些設置.
                • 最后,需要注意的是,并非所有 php.ini 設置都可以通過 .htaccess 文件進行配置.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.

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

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

                相關文檔推薦

                enable SOAP on PHP(在 PHP 上啟用 SOAP)
                Get received XML from PHP SOAP Server(從 PHP SOAP 服務器獲取接收到的 XML)
                not a valid AllXsd value(不是有效的 AllXsd 值)
                PHP SoapClient: SoapFault exception Could not connect to host(PHP SoapClient:SoapFault 異常無法連接到主機)
                Implementation of P_SHA1 algorithm in PHP(PHP中P_SHA1算法的實現)
                Sending a byte array from PHP to WCF(將字節數組從 PHP 發送到 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="mqwymy0" 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>

                          主站蜘蛛池模板: 证券新闻,热播美式保罗1984第二部_腾讯1080p-仁爱影院 | 网站建设-网站制作-网站设计-网站开发定制公司-网站SEO优化推广-咏熠软件 | 二手Sciex液质联用仪-岛津气质联用仪-二手安捷伦气质联用仪-上海隐智科学仪器有限公司 | 防水套管_柔性防水套管_刚性防水套管-巩义市润达管道设备制造有限公司 | 网站建设-网站制作-网站设计-网站开发定制公司-网站SEO优化推广-咏熠软件 | 集装箱箱号识别_自重载重图像识别_铁路车号自动识别_OCR图像识别 | 电线电缆厂家|沈阳电缆厂|电线厂|沈阳英联塑力线缆有限公司 | 昆明挖掘机修理厂_挖掘机翻新再制造-昆明聚力工程机械维修有限公司 | 小程序开发公司-小程序制作-微信小程序开发-小程序定制-咏熠软件 | 福建省教师资格证-福建教师资格证考试网 | 合同书格式和范文_合同书样本模板_电子版合同,找范文吧 | CNC机加工-数控加工-精密零件加工-ISO认证厂家-鑫创盟 | 多物理场仿真软件_电磁仿真软件_EDA多物理场仿真软件 - 裕兴木兰 | 低粘度纤维素|混凝土灌浆料|有机硅憎水粉|聚羧酸减水剂-南京斯泰宝 | 免费分销系统 — 分销商城系统_分销小程序开发 -【微商来】 | 锻造液压机,粉末冶金,拉伸,坩埚成型液压机定制生产厂家-山东威力重工官方网站 | 气弹簧定制-气动杆-可控气弹簧-不锈钢阻尼器-工业气弹簧-可调节气弹簧厂家-常州巨腾气弹簧供应商 | 水上浮桥-游艇码头-浮动码头-游船码头-码瑞纳游艇码头工程 | 镀锌角钢_槽钢_扁钢_圆钢_方矩管厂家_镀锌花纹板-海邦钢铁(天津)有限公司 | 工业洗衣机_工业洗涤设备_上海力净工业洗衣机厂家-洗涤设备首页 bkzzy在职研究生网 - 在职研究生招生信息咨询平台 | 氟塑料磁力泵-不锈钢离心泵-耐腐蚀化工泵厂家「皖金泵阀」 | 同步带轮_同步带_同步轮_iHF合发齿轮厂家-深圳市合发齿轮机械有限公司 | 扒渣机,铁水扒渣机,钢水扒渣机,铁水捞渣机,钢水捞渣机-烟台盛利达工程技术有限公司 | 防潮防水通风密闭门源头实力厂家 - 北京酷思帝克门窗 | 厂房出售_厂房仓库出租_写字楼招租_土地出售-中苣招商网-中苣招商网 | 质检报告_CE认证_FCC认证_SRRC认证_PSE认证_第三方检测机构-深圳市环测威检测技术有限公司 | 深圳活动策划公司|庆典策划|专业公关活动策划|深圳艺典文化传媒 重庆中专|职高|技校招生-重庆中专招生网 | 精雕机-火花机-精雕机 cnc-高速精雕机-电火花机-广东鼎拓机械科技有限公司 | 细石混凝土泵_厂家_价格-烟台九达机械有限公司 | 超声骨密度仪-骨密度检测仪-经颅多普勒-tcd仪_南京科进实业有限公司 | 专业广州网站建设,微信小程序开发,一物一码和NFC应用开发、物联网、外贸商城、定制系统和APP开发【致茂网络】 | 建大仁科-温湿度变送器|温湿度传感器|温湿度记录仪_厂家_价格-山东仁科 | 包装机_厂家_价格-山东包装机有限公司| 双段式高压鼓风机-雕刻机用真空泵-绍兴天晨机械有限公司 | 大倾角皮带机-皮带输送机-螺旋输送机-矿用皮带输送机价格厂家-河南坤威机械 | 广州展台特装搭建商|特装展位设计搭建|展会特装搭建|特装展台制作设计|展览特装公司 | 精密模具制造,注塑加工,吹塑和吹瓶加工,EPS泡沫包装生产 - 济南兴田塑胶有限公司 | 便携式谷丙转氨酶检测仪|华图生物科技百科 | 温州食堂承包 - 温州市尚膳餐饮管理有限公司 | 手术示教系统-数字化手术室系统-林之硕医疗云智能视频平台 | 珠海白蚁防治_珠海灭鼠_珠海杀虫灭鼠_珠海灭蟑螂_珠海酒店消杀_珠海工厂杀虫灭鼠_立净虫控防治服务有限公司 |