| :: |
| Author |
Message |
kalwi
Joined: 07 Aug 2008 Posts: 7
|
Posted: Thu Aug 07, 2008 7:29 pm Post subject: Help! |
|
|
After i changed tittle in common.php i have a error
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3594: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3596: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3597: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3598: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
Why? How to fix it ? |
|
|
| Back to top |
|
 |
|
 |
Professional PR2


Joined: 07 Apr 2008 Posts: 252 Location: 1/2 of the World
|
|
| Back to top |
|
 |
kalwi
Joined: 07 Aug 2008 Posts: 7
|
Posted: Sat Aug 09, 2008 11:25 am Post subject: Re: Help! |
|
|
| Yes It works ! Thank you |
|
|
| Back to top |
|
 |
Professional PR2


Joined: 07 Apr 2008 Posts: 252 Location: 1/2 of the World
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3987
|
|
| Back to top |
|
 |
Professional PR2


Joined: 07 Apr 2008 Posts: 252 Location: 1/2 of the World
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
Professional PR2


Joined: 07 Apr 2008 Posts: 252 Location: 1/2 of the World
|
Posted: Wed Aug 13, 2008 4:11 pm Post subject: Re: Help! |
|
|
| dcz wrote: | | Professional wrote: | | sorry we shoud save our language file UTF8,so what is the solution? |
Sorry, I did not understand exactly what you are talking about, could you elaborate a bit ? |
sure.because seo said:
| SeO wrote: |
If so you most likely added a white space after the php ending tag (?>) or edited your file not using utf-8. |
it means that we shoud save it UTF8?
i did this for my friend and i got this error.
so what is the solution and what doese these lines do?
| Code: | header('Content-type: text/html; charset=UTF-8');
header('Cache-Control: private, no-cache="set-cookie"');
header('Expires: 0');
header('Pragma: no-cache'); |
what will happen if we comment them? |
_________________ انجمن تخصصی موبایل برای ایرانیان
http://www.mobile4persian.com
برنامه موبایل - بازی موبایل - تم موبایل - اخبار موبایل - ترفند موبایل - s60 -s60 3rd- s80-s90-java-pocket pc-palm-ppc-UIQ3-UIQ |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: Mon Aug 18, 2008 8:17 am Post subject: Re: Help! |
|
|
The line you mention are sending the server's headers, telling browsers what type of document is sent and how to handle caching.
You get an error because some content is sent before these lines are executed (they must be sent before any content).
The usual cause for this is when a white space (or any character) is located either before :
or after :
in any php file, because in such case, php outputs it directly, as soon as the file is processed.
The other possible cause is if a notice or a warning (error) is outputted before these line are executed.
So if this occurred after you edited a language file, you must have introduced some error or some characters outside the php tags.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
Professional PR2


Joined: 07 Apr 2008 Posts: 252 Location: 1/2 of the World
|
|
| Back to top |
|
 |
|
|