http digest authentication - Headers already sent?

Status
Not open for further replies.

altrock182182

New Member
Messages
40
Reaction score
0
Points
0
Warning: Cannot modify header information - headers already sent by (output started at /home/altrock1/public_html/panel/index.php:12) in /home/altrock1/public_html/panel/secure.php on line 27

index.php:
Code:
11: <h1>ADMINISTRATION PANEL</h1>';
12:[B] <?   require('secure.php');[/B]
secure.php:
Code:
I copied it from here:
[URL]http://www.php.net/features.http-auth[/URL] Example 34.2
and modified only the users/passwords.


It seems like x10's configuration is somehow sending an authentication header right at the start of any PHP... Does anyone know anything about this?

I'm assuming I might just have to do a .htaccess but I'd rather do it this way if I can. Any suggestions/legal workarounds?
Edit:
FIXED - There was a conflict with the Frontpage .htaccess files.

It was grabbing the .htaccess from one level up instead of ignoring it like i thought it would.

Made a .htaccess file through cpanel, and rermoved my script.
 
Last edited:
Status
Not open for further replies.
Top