Days Ago Function

<?php function Agotime($date) { if(empty($date)) { return “No date provided”; }   $periods = array(“second”, “minute”, “hour”, “day”, “week”, “month”,

Create easy cache file.

Add on top page ob_start(); $cachefile = “cache/”.md5($_SERVER[‘REQUEST_URI’]).”.html”; if (file_exists($cachefile)) { echo file_get_contents($cachefile); exit(); } Add on bottom page $fp