I am currently working my way through ‘Build Your Own Database Driven Website Using PHP & MYSQL’ by Kevin Yank and have come across a problem using the header (‘Location: .’) function. It works OK on my own computer but when I try to view the same site on my hosting server I get an error Warning: Cannot modify header information - headers already sent by (output started at /path/includes/db.inc.php:3) in /path/admin/jokes/index.php on line 228
I have used the code-archive version that I downloaded with the book. And I have read the posts about white space before the php tag, this made no difference.
Any help would be much appreciated (By the way I am a novice)