Unix timestamp > days, hours and minutes
<blockquote>
  <p><strong>Possible Duplicate:</strong><br />
  <a href="http://stackoverflow.com/questions/1052944/unix-timestamp-to-days-hours-minutes">Unix timestamp to days, hours, minutes</a>  </p>
</blockquote>

<p>So, I have a field in my users table named last_active which updates every time a user reloads a page.
It's stored in unix timestamp.</p>

<p>I would like to output it like this:<br>
<code>Last activity: 4 d 18 h 19 m ago</code></p>

<p>How would one do that with PHP?</p>

<p>Thank you.</p>
