Can you please compress the original php page into a zip file and send the zip file in your reply. The error indicates that there is some output to the page, probably a blank space somewhere. But I will not be able to spot it in the code you have pasted I will need to see the code in the original PHP page.