簡體   English   中英

頁面加載超時,刷新-Codeigniter

[英]Page loading timeout, refreshing - codeigniter

我在我的codeigniter實時項目上有一個鏈接:

<a href="https://businessactioncomplete.com/action_station/crmmails/viewmails?page=1" class="btn btn-warning btn-block">Check Incoming Emails</a>

當我單擊此鏈接時,它開始加載頁面,它在crmmails.php中調用viewmails()函數,腳本運行幾分鍾,恰好兩分鍾后,函數執行停止,viewmails()函數從頭開始再次運行。 我從我的調試文件知道這一點:

crmmails running viewmails function 2019-03-01 03:34:06am // first call
crmmails before emails_view 2019-03-01 03:34:06am
crmmails running viewmails function 2019-03-01 03:36:06am // second call
crmmails before emails_view 2019-03-01 03:36:06am
crmmails after emails_view 2019-03-01 03:36:07am

為什么會這樣呢? 我需要在哪里檢查這種設置。 我想停止刷新,因為我的腳本必須運行更長的時間。

php.ini修改最大執行時間

; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 120

我檢查了您的URL,它正在打開。 但是您的代碼中存在一些錯誤。

您應該在php.ini文件中更改執行時間

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM