Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Closed TopicStart new topic
> Bład header.php
xeron01
post 4.12.2011, 20:59:14
Post #1





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

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


Kod headeru.
Kod
<?php
ob_start();

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");

if(!isset($__installer_mode)){
    require_once("inc/config.php");
//    include("email.php");
}

ob_end_flush();
?>


błedy które wyskakuja

http://fotkowo.pl/images/306b_edy.png

Jakies propozycje zmian jak to naprawic?
Dodam że w index.php 1 linijka to:
Kod
<? require "header.php";?>


Szukam szukam i niemoge znalesc odpowiedzi na ten bład


Ten post edytował xeron01 4.12.2011, 21:05:03
Go to the top of the page
+Quote Post
kadlub
post 4.12.2011, 21:23:06
Post #2





Grupa: Zarejestrowani
Postów: 548
Pomógł: 105
Dołączył: 4.06.2010

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


ten błąd mówi że wysłałeś już jakieś nagłówki
skasuj wszystkie spacje wcześniej
Go to the top of the page
+Quote Post
xeron01
post 4.12.2011, 21:26:51
Post #3





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

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


Po usunięciu wszystkich spacji , bład nadal jest taki sam.
Go to the top of the page
+Quote Post
kadlub
post 4.12.2011, 21:30:05
Post #4





Grupa: Zarejestrowani
Postów: 548
Pomógł: 105
Dołączył: 4.06.2010

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


a w index.php dajesz coś do wyświetlenia na stronę przed wysłaniem nagłówków??
Go to the top of the page
+Quote Post
xeron01
post 4.12.2011, 21:38:17
Post #5





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

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


Nie nic.

Dam wiekszą część moze ktoś cos wymysli:

Kod
<?php
ob_start();
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");
if(!isset($__installer_mode)){
    require_once("inc/config.php");
//    include("email.php");
}
ob_end_flush();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="<?=$config[MetaDesc]?>" />
<meta name="keywords" content="<?=$config[MetaWords]?>" />

<?


Ten post edytował xeron01 4.12.2011, 21:44:01
Go to the top of the page
+Quote Post
kadlub
post 4.12.2011, 21:40:36
Post #6





Grupa: Zarejestrowani
Postów: 548
Pomógł: 105
Dołączył: 4.06.2010

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


to pokaż ten index.php
Go to the top of the page
+Quote Post
wookieb
post 4.12.2011, 21:46:04
Post #7





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




Zamykam. Temat był omawiamy tysiące razy a poszukanie odpowiedzi na borykający Cie problem wcale nie jest trudne.


--------------------
Go to the top of the page
+Quote Post

Closed TopicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 13.06.2025 - 11:11