Hi
I have a problem I have been desperately trying to find a solution for. I have a script which builds up a $htmltext string to be used for sending an email. On my local machine (XP, Apache 1.3, PHP 4.3.0) the script works with no problems, however on my server (Redhat 8, Apache 2, and PHP 4.2.2) the script works but when the variable gets passed back from the build function the data is corrupted. It repeats bits of itself, and is about 3-4 times the length it should be. Because it works on the local machine I think it must be something to do with the server.
I have thought about upgrading PHP on the server, however I am new to Unix and I am worried about making the server inoperable if something goes wrong, as it has live sites on it. I wondered if anyone has heard of this problem and if there are any solutions? I need this to work and so if upgrading PHP is the solution, how easy is it to install and do I have to uninstall the version which is on it at the moment?
Thanks for your time
Andy