Cache-anje ne dela
 
G-force29. okt 2009 14:40:16Pridružen od:
31. mar 2008
719 objav
+336-451
#1Uporabim spodnjo kodo...<?php
ob_start();
?>

PHP / HTML vsebina

<?php
$cachefile = "../cache/stran.html";
$ft = fopen($cachefile, 'w');
fwrite($fp, ob_get_contents());
fclose($fp);
ob_end_flush();
?>

Stran.html se ustvari, vendar je vsebina prazna. Testiram na WAMPSERVER 2.0, PHP 5.2.9-2. (default nastavitve)

Hvala za pomoč
všeč(0)ni všeč(0)spam(0)
 
mtance4. nov 2009 16:43:51Pridružen od:
27. jan 2008
489 objav
+178-151
#2<?php
$cachefile = "../cache/stran.html";
$ft = fopen($cachefile, 'w');
fwrite($fp, ob_get_contents());
fclose($fp);
ob_end_flush();
?>

Popravi $ft v $fp
všeč(+2)ni všeč(0)spam(0)
 
G-force4. nov 2009 17:16:57Pridružen od:
31. mar 2008
719 objav
+336-451
#3Odlično! Zdaj dela. :) Hvala ti.
nazadnje urejal G-force 4. nov 2009 17:20:16
všeč(0)ni všeč(0)spam(0)
 
stran 1 od 1 |<<1>>|