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
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to