<?php
Header("WWW-Authenticate: Basic realm=\"Member\"");
Header("HTTP/1.0 401 Unauthorized");
?>
错误提示:
Warning: Cannot add header information - headers already sent by (output started at c:\php\test\a.php:9) in c:\php\test\a.php on line 10Warning: Cannot add header information - headers already sent by (output started at c:\php\test\a.php:9) in c:\php\test\a.php on line 11
Header("WWW-Authenticate: Basic realm=\"Member\"");
Header("HTTP/1.0 401 Unauthorized");
?>
错误提示:
Warning: Cannot add header information - headers already sent by (output started at c:\php\test\a.php:9) in c:\php\test\a.php on line 10Warning: Cannot add header information - headers already sent by (output started at c:\php\test\a.php:9) in c:\php\test\a.php on line 11
那两句,有11行吗?!<?php 前面不要有任何输出 HTML代码、空格等
去掉了,可以,但是,怎么编这段代码??