header()
Posted: Wed Aug 02, 2006 3:11 pm
Hi, can someone explain as I was a five years old boy step by step what this is?
my code is:
And I get a 5 seconds delay in the value of $contenido, no matter if I am on the server or in another country... And I am calling this function every second
thanks for the help
Code: Select all
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Pragma: no-cache");my code is:
Code: Select all
<?php
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Pragma: no-cache");
$mifichero = "C:\posicion.txt";
$posicion=array();
$referencia=array();
if ($mi_array=file($mifichero)) {
list ($linea, $contenido) = each ($mi_array);
}
echo $contenido;
?>thanks for the help