|
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at D:\apms\APMServ5.2.6\www\htdocs\renrenPage\application\libraries\user_lib.php:1)
Filename: core/Input.php
Line Number: 286
加载LIB的时候报错,以下是我LIB的代码。
PHP复制代码 <?php
class user_lib {
public function isLog (){
$CI =& get_instance ();
$CI->load->helper('cookie');
$CI->load->model('user_model','',TRUE);
$CI->user_model->isLog(74,'x1','11f6ad8ec52a2984abaafd7c3b516503785c2072');
$password = array( 'name' => 'password',
'value' => 'password',
'expire' => 3*24*60*60,
'domain' => '.page.wsyzren.com',
'path' => '/',
'prefix' => 'kungg_',
'secure' => TRUE);
$username = array( 'name' => 'username',
'value' => 'username',
'expire' => 3*24*60*60,
'domain' => '.renren.wsyzren.com',
'path' => '/',
'prefix' => '');
$id = array( 'name' => 'id',
'value' => 'id',
'expire' => 3*24*60*60,
'domain' => '.renren.wsyzren.com',
'path' => '/',
'prefix' => '');
set_cookie ($password);
//setcookie('name','xxx','6000','','',TRUE);
}
}
?> 复制代码
我看了网上很多解决方案,除了修改php.ini可以解决,其他都不行。
因为我的网站是在虚拟主机上,所以没法修改php.ini
这个问题应该如何解决啊
|
|