Both posters:
1. Sure you have permissions set to 0755?
2. If you wrote the code on a Windows machine, make sure you uploaded in ASCII (text) mode and that the software (ie Notepad, Notepad++ ) you used to write the script does not add extra characters.
3. Don't forget to print the header before...