previous page button of browser opening on-rev server page

Dave Cragg dave.cragg at lacscentre.co.uk
Tue Jul 26 07:03:01 EDT 2011


On 26 Jul 2011, at 07:40, paolo mazza wrote:

> Thank you all. Trying to get rid of the browser cache setting the
> proper headings (as Shao Sean suggested) , I came up with these 2
> solutions:
> 
> PHP:
> 
> <?php
> header("Cache-Control: no-cache, must-revalidate");
> header("Expires: Fri, 30 oct 1998 14:18:41 GMT");
> ?>
> 
> <?php
> $dateTime = date("Y:m:d-H:i:s");
> function getDateTime() {
> global $dateTime;
> return $dateTime;
> }
> ?>
> 
> <html>
> <head>
> </head>
> <body>
> <?php echo getDateTime() ?>
> </body>
> </html>
> 
> LIVECODE  ... much easyer  ;-)

Not really a fair comparison. The following php script will do the same as your Livecode script:

<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Fri, 30 oct 1998 14:18:41 GMT");
echo date("Y:m:d-H:i:s");
?>

Not so different. :-)

Dave



More information about the use-livecode mailing list