farking stupid technology
Feb. 8th, 2008 07:46 pmSo I have a webform which posts to a processing script. Intemittently and apparently based in part on whether diagnostic comments in the script are commented out or not (based on F5/Yes resubmit data after uploading the edit), but becoming more frequent the POST data seems to get lost as far as the PHP is concerned (empty print_r of the array, yadda yadda) yet the mysql which uses the data is updating fine with the correct info. - even though the query is being written by the php and outputting the query text shows empty fields.
The sql working shows up another problem - even though the error condition is being triggered the only thing an exit; does is stop the output to the screen - the rest of the script is merrily running through - sql statements, everything except exits and breaks! (The switch statement works until it reaches the appropriate condition - and then the default runs as well! )
Replicated IE/Firefox.
In desperation, after a couple of hours of this I tried the code (I was only making some minor tweaks) on the 'production' (client's) server and lo, it works fine. Which leads me to conclude that my webhost is doing something bass-ackwards with their php config.
When I have a little calm back I'll set up a copy of the DB and try it on my local WAMP - Right now I'm just pissed off.
The sql working shows up another problem - even though the error condition is being triggered the only thing an exit; does is stop the output to the screen - the rest of the script is merrily running through - sql statements, everything except exits and breaks! (The switch statement works until it reaches the appropriate condition - and then the default runs as well! )
Replicated IE/Firefox.
In desperation, after a couple of hours of this I tried the code (I was only making some minor tweaks) on the 'production' (client's) server and lo, it works fine. Which leads me to conclude that my webhost is doing something bass-ackwards with their php config.
When I have a little calm back I'll set up a copy of the DB and try it on my local WAMP - Right now I'm just pissed off.