Welcome Guest, Not a member yet? Register   Sign In
Session
#1

[eluser]FnTm[/eluser]
Hi guys. Im starting to get very frustrated with this code. Im kinda newbie to this whole php stuff, but im trying to learn something. So here goes.

I keep getting
Code:
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\codeigniter\system\application\controllers\skolas.php:2)

Filename: libraries/Db_session.php

Line Number: 248
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\codeigniter\system\application\controllers\skolas.php:2)

Filename: helpers/url_helper.php

Line Number: 455
kinda error. What could be the problem? And how do I fix it?
#2

[eluser]tonanbarbarian[/eluser]
Cannot modify headers usually means that something has been already output
One of the common mistakes is blank spaces after the closing ?> tags in code files
In fact is is better just not to use closing ?> tags in files that are only code (i.e. Controller, Models, Libraries, Plugins and Helpers)
Or if you have added some debugging to your code to echo out something then it may be causing this issue as well




Theme © iAndrew 2016 - Forum software by © MyBB