A lot of people receiving "Cannot modify header information" error, so i decided to explain it.
Warning: Cannot modify header information - headers already sent by (
output started at /home/ahdiorg/public_html/members_area.php:1) in /home/ahdiorg/public_html/pass_protect/ahdi_password_protect.php on line 138
Such error means your script is sending some output before password protector takes control.
Look at your error message.
1. Find the part which is in red color above. This is the name of the program which is causing problems.
2. Find the part which is in green color above. This is the line number in the program which is causing problems.
In above example
members_area.php does output something in line 1.
Open program you found on step 1. Make sure protection string is added at the very beginning of the file. It must be first line, no spaces or any other characters allowed before the <?php ...