Author |
|
peacemaker
Joined: 23 May 2008 Posts: 80
|
Posted: Tue 25 Aug '09 12:28 Post subject: Cannt send header problem |
|
|
Hi all , this is with respect to my previous threads, i have uploaded up my site and now the problem is its giving me error
Quote: | Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /../../../../../modifyemp.php:1) in /../../../..l/modifyemp.php on line 150 |
and the line 150 is:-- session_start().
The wat can be the problem, i have deleted all the html before this and above this 150 line there is javascript code for validation.
Wat can be the problem, this is form for modifying emp details. Even it gets updated properly inspite of this session error.
Thanks in advance |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
peacemaker
Joined: 23 May 2008 Posts: 80
|
Posted: Wed 26 Aug '09 7:24 Post subject: All clear now |
|
|
Hi thanks james for your gr8 help always , my all problems are clear now, the header problem ,and session problem. I put session start at very first line thats line 1. so no prob of header and session now. Thanks a lot for your help regarding this. |
|
Back to top |
|
peacemaker
Joined: 23 May 2008 Posts: 80
|
Posted: Wed 10 Nov '10 16:56 Post subject: Session Problem |
|
|
Hi james, i solved that problem by putting session_start at top of the page.
But there was another problem regarding this, it was giving error related to session, i searched aand came to know that i have to remove some characters by editing the php file in text using utf-8 format. There are some ascii chars at the beginning of file i removed them and it worked properly.
i make a new topic with error message and then i will describe it properly. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 10 Nov '10 18:00 Post subject: |
|
|
That is the issue saving files UTF-8 with BOM. If you have a good reason to save files in UTF-8 (like letter that doesn't fit into iso-8859-1) than use UTF-8 without BOM. If you don't have any special charakters / letters in your php code it is recommend to save php files in ASNI / ASCII. |
|
Back to top |
|
peacemaker
Joined: 23 May 2008 Posts: 80
|
Posted: Thu 11 Nov '10 13:16 Post subject: |
|
|
now i dnt remember in which file format i saved but at the moment its working fine. wat i feel is its i removed those special chars and then i think i saved it in ANSI and its working thats it.. |
|
Back to top |
|