Rumah > pembangunan bahagian belakang > tutorial php > CodeIgniter加载session类 提示异常 如何解决

CodeIgniter加载session类 提示异常 如何解决

WBOY
Lepaskan: 2016-06-13 10:51:38
asal
881 orang telah melayarinya

CodeIgniter加载session类 提示错误 怎么解决
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at F:\APMServ5.2.6\www\htdocs\application\config\config.php:1)

Filename: libraries/Session.php

Line Number: 672



我的config.php的一部分代码:

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?php if( !defined('BASEPATH') ) exit('No direct script access allowed');/*|--------------------------------------| Base Site URL|--------------------------------------|| URL to your CodeIgniter root. Typically this will be your base URL,| WITH a trailing slash:||    http://example.com/|| If this is not set then CodeIgniter will guess the protocol, domain and| path to your installation.|*/$config['base_url']    = '';/*|--------------------------------------| Index File|--------------------------------------|| Typically this will be your index.php file, unless you've renamed it to| something else. If you are using mod_rewrite to remove the page set this| variable so that it is blank.|*/$config['index_page'] = 'index.php';/*|--------------------------------------| URI PROTOCOL|--------------------------------------
Salin selepas log masuk

求高手解答

------解决方案--------------------
config.php 首行是空行?
Label berkaitan:
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan