php - "The connection was reset" showing up on old code -


i have form 25 inputs , code process it. last time code edited in way 3 weeks ago. randomly started getting reset connection issues. investigate, began cutting out sections of code find guilty sections (cut section, refresh, repeat). once narrowed down particular section (one when cut out, error did not occur), started repeat process smaller sections of culprit section. finally, had entire section commented out. still got error. deleted commented out sections , no error!

this leads me conclude error isn't in code, recent change configuration of server (i host godaddy) or that. suggestions cause error? i've never removed comments code , fixed error before.

further information: form loads correctly initially. clicking of buttons gives me error, code precess before error (i file in/output can see it's working). happens "clear all" button skips section mentioned above, , reloads form.

i using no database interaction whatsoever. script utilize both facebook , twitter apis.

i don't know how proceed point. i'm willing post code entire file if necessary, investigation reveals pointless. can provide link offending page.

update: commented out code except output of html form itself. no processing code @ all. 1 function output form. clicking button causes connection reset. if delete commented out code, not connection reset, form reloads.

update #2. uploaded site host. code runs fine no issues.

update #3. after exhaustive examination, i've determined cause of problem following function call:

preg_replace('/\b(\w)/e', 'strtoupper("$1")', $_post['dessert_name']) 

if comment out line, connection reset error... if delete it, script runs perfectly.

you need increase php timeout limit in php.ini

this in experience timeout.

max_execution_time = 60

or @ top of script add

set_time_limit(60); 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -