Hi there Experts,
I am really hoping you guys will do me a wonderfull 11th hour save here.
I am just finishing up a bit of code to go live for a demonstration tomorrow to some customers. I have been working on this code for the last month or so, and it's my first real forrey into object orientated code, and the likes.
When running the app on my local machine (with an XAMPP installation) the suite runs nicely, smoothly everything is golden and lovely. My XAMPP installation is using standard settings, no worries at all.
SO I am extremely confused as to why, when I upload the same script using the same database to my prodution server (CentOS) the entire application would seem to stop working completely.
Basically what I get is this:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 33566033 bytes) in /home/tom/domains/***.org/public_html/***/lib/core.php on line 337
I can happily give you the URL of the system if you would like. Hell at this point I can email you the dammed source code.
The really frustrating thing is that line 337 is just this:
return preg_replace($pattern, $replacement, $string);
And that's doing a replacement from a set of sanitization functions that I have literally been using for years. If I remove that line then it jumps to line 177 of the same file, which again is nothing that exiting.
Really I am confused as hell.
The only potential difference is that my xampp install is using PHP 5.3.1 and my server is using 5.2.12.
Both servers have memory_limit's set to 128M.
Oh dear lordy please help experts!