專題文章
時長:00:00更新時間:2020-11-27 14:19:49
PHP訪問結束如何繼續(xù)處理:今天看到dewen里面有人問,如何用php實現(xiàn)瀏覽器訪問結束后繼續(xù)執(zhí)行后續(xù)代碼,我寫了個demo,在php-fpm環(huán)境下非常容易實現(xiàn),fastcgi_finish_request即可。如果是其它容器,我想只能通過輸出javascript到客戶端實現(xiàn)跳轉,然后后臺繼續(xù)執(zhí)行。demo如下,ph
查看詳情