Warning:Cannot modify header information

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jayluda
Forum Newbie
Posts: 9
Joined: Tue Aug 02, 2005 10:51 am

Warning:Cannot modify header information

Post by jayluda »

I created a download link but when it is clicked, a header warning is displayed as shown below:
Warning: Cannot modify header information - headers already sent by (output started at /home/mar/public_html/mfdownload/config.inc.php:33) in /home/mar/public_html/mfdownload/fetch.php on line 59.

A similar warning is displayed when a user tries to log in to a password protected part of the site. What do i do?
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

Most likely you have already echoed out text or there is a space after a closing php tag. ex ?>[space]
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

jayluda
Forum Newbie
Posts: 9
Joined: Tue Aug 02, 2005 10:51 am

Post by jayluda »

Thanx, guys. U r the best!
Post Reply