[eluser]TheFuzzy0ne[/eluser]
I think it's got to be you're code. My only suggestion is to rename the current file, and give it an .old.php extension, and then try to write you're method again without looking at your old code. See if anything changes. I'm quite surprised no-one else has replied to this thread yet.
Please could you post the exact requirements of your method?