I'm running into some issue on one of the servers I work on. For months and/or years a php script was working perfectly fine. Then one day without warning, the page stopped working properly, throwing errors, etc. (the last date this page was modified was about 4 months prior to the problem). Nothing in the code indicated to me that there was a problem so through troubleshooting, I re-arranged the items/bits of code on the page and it started working again. I don't understand the logic behind this with something that was working without problem for so long.
Has anyone else run into this kind of weird behaviour? Could network instability issues cause a script to suddenly stop working like it did before? This server in particular has Apache 2.2 with PHP 5.2.5 and is working with Oracle databases.
I've got sites on another server which works without fail and does not require me to re-write code periodically to keep it working. IN fact, when this happens, I often create that page on the "good" server to test the PHP and it works there.
Does anyone know of any reason(s) why PHP would behave so unpredictable and just behave different on it's own? I'm totally stumped.