setting expire header in php - PHP Views : 164
Tagged in : PHP
0 0
Send mail


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');
By gowtham, On - 2010-09-17



    Login to add Comments .