Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Bład header.php
xeron01
post
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
 
Start new topic
Odpowiedzi
xeron01
post
Post #2





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

Posty w temacie


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

 



RSS Aktualny czas: 8.10.2025 - 15:37