config.inc.php<?php
$dbhost='localhost'; //database server
$dbuser='goip'; //database username
$dbpw='goip'; //database password
$dbname='goip'; //database name 哈
?> test.php
<?
include_once 'config.inc.php';
setcookie("username","1111111");
?>打开test.php错误
Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\phpcj\website\goip\inc\config.inc.php:6) in D:\AppServ\phpcj\website\goip\inc\test.php on line 3
$dbhost='localhost'; //database server
$dbuser='goip'; //database username
$dbpw='goip'; //database password
$dbname='goip'; //database name 哈
?> test.php
<?
include_once 'config.inc.php';
setcookie("username","1111111");
?>打开test.php错误
Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\phpcj\website\goip\inc\config.inc.php:6) in D:\AppServ\phpcj\website\goip\inc\test.php on line 3
config.inc.php<?php
$dbhost='localhost';
$dbuser='goip';
$dbpw='goip';
$dbname='goip';
?>test.php<?php
include('config.inc.php');
setcookie("username","1111111");
?>
最后的?>后面有个空格。
在页面前加上
ob_start();试一下
>>config.inc.php set/p=?^><nul