Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem tłumaczenia
xeron01
post
Post #1





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 30.11.2011

Ostrzeżenie: (0%)
-----


Witam dzisiaj dopadł mnie kolejny problem. (zapewne błachy)
Otóż piszę spolszczenie w index.php dodałem linijkę
Cytat
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">

Pliki Zapisuję i edytuje( w postaci UTF-8) NotePad++ .
Gdy wrzucam na serwer powstają nastepujące błędy

Kod
Warning: Cannot modify header information - headers already sent by (output started at /homepages/33/d349171117/htdocs/hosting/header.php:1) in /homepages/33/d349171117/htdocs/hosting/header.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /homepages/33/d349171117/htdocs/hosting/header.php:1) in /homepages/33/d349171117/htdocs/hosting/header.php on line 4

Warning: Cannot modify header information - headers already sent by (output started at /homepages/33/d349171117/htdocs/hosting/header.php:1) in /homepages/33/d349171117/htdocs/hosting/header.php on line 5

Warning: Cannot modify header information - headers already sent by (output started at /homepages/33/d349171117/htdocs/hosting/header.php:1) in /homepages/33/d349171117/htdocs/hosting/header.php on line 6

Warning: Cannot modify header information - headers already sent by (output started at /homepages/33/d349171117/htdocs/hosting/header.php:1) in /homepages/33/d349171117/htdocs/hosting/header.php on line 7

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homepages/33/d349171117/htdocs/hosting/header.php:1) in /homepages/33/d349171117/htdocs/hosting/header.php on line 11


Myślę iz bład leży w tej linijce kodu:

Kod
<?php

header("ETag: PUB" . time());
header("Last-Modified: " . gmdate("D, d M Y H:i:s", time()-10) . " GMT");
header("Expires: " . gmdate("D, d M Y H:i:s", time() + 5) . " GMT");
header("Pragma: no-cache");
header("Cache-Control: max-age=1, s-maxage=1, no-cache, must-revalidate");
session_cache_limiter("nocache");

ob_start();
session_start();


Wie ktoś jak rozwiązać problem?
Ps. szukałem po googlach lecz nie znalazłem dosadnej odpowiedzi
Znalazłem jeszcze takie coś lecz gdzie to wstawic?
Kod
$LANGUAGE_PACK = array();
$LANGUAGE_PACK["site_charset"]       = 'UTF-8';


Ten post edytował xeron01 3.12.2011, 00:53:52
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
xeron01
post
Post #2





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 30.11.2011

Ostrzeżenie: (0%)
-----


Cytat(wizu @ 3.12.2011, 00:06:16 ) *
UTF-8 (IMG:style_emoticons/default/wink.gif)

Przekonwertuj na UTF-8 bez BOM-a. Przeczytaj przy okazji co to jest BOM.


Sory za literówke na górze jest dobrze chodziło mi o UTF-8 bład dalej jest
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 6.10.2025 - 17:29