I first want to say thank you for a great set of intro to PHP set of video tutorials. It was a great refresher course for someone who hasn't messed with anything more than really simple php scripts in a while.

I had no problem making the scripts and web pages all work on my own local machine but when I tried uploading them to Godaddy I ran into a problem.

The problem seems to be when I do the following:
header('Location:'.$_SERVER('PHP_SELF'));


Godaddy gives me a error similar to this:

Warning: Cannot modify header information - headers already sent by (output started at /home/content/u/s/e/username/html/file.php:2) in /home/content/u/s/e/username/html/file.php on line 4

Godaddy says to: "To resolve this error remove the lines from the PHP code that are printing to the browser prior to sending headers."

Other websites say to find and delete white space after the closing php tag.

I am unable to figure out a way to get the scripts to still work and do what Godaddy says to do. As for white space, I believe I've done that with notepad.

Therefore I am currently out of ideas. If anyone else has one, I would be grateful.