开发者

What can cause reset connection when running PHP script?

开发者 https://www.devze.com 2022-12-31 06:04 出处:网络
I\'ve developed a web application with CodeIgniter that works perfectly on my local machines (one with windows and one with Linux). When I moved it to my hosting server, connection gets reset when run

I've developed a web application with CodeIgniter that works perfectly on my local machines (one with windows and one with Linux). When I moved it to my hosting server, connection gets reset when running one particular PHP script that does a few MySQL queries and some operations on arrays. The data I'm querying is small, just a few tables with up to 25 records. Firefox returns "The connection was reset" after maybe 2-3 seconds. I chec开发者_如何学Goked the servers error logs but there was nothing there. Unfortunately I don't have access to Apache error logs.

What can cause this behavior?


Is it possible that your script is executing for longer than PHP has been configured to allow. Admittedly, 2-3 seconds seems rather short, but it could be absurdly limited by a nasty hosting provider. The default for PHP is 30 seconds if I remember.


as described by @marcin_koss , same applied to me. I had to deactivate the code-igniter Session class and use the native PHP session.

session_start();
$_SESSION[]
0

精彩评论

暂无评论...
验证码 换一张
取 消