setting expire header in php

by gowtham 2010-09-17 11:33:04



In PHP File
//s*m*hr*day
$expires = 60*60*24*14;
header("Pragma: public");
header("Cache-Control: maxage=".$expires);
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');

Tagged in:

875
like
0
dislike
0
mail
flag

You must LOGIN to add comments