Creating a unique file name by calculating the seconds from a set date to the time now.
<p>After reading a few threads and articles I came up with the following code:</p>

<pre><code>$timeFirst  = strtotime('1971-01-01 00:00:00');
$timeSecond = date("s");
$filename = $timeFirst - $timeSecond;
</code></pre>

<p>I basically want a unique number to use as a filename, and as the seconds from the set date to now will never be the same, this seemed like a good option. However the number is going down, which unless im moving backwards through time (unlikely) isn't correct. Can anyone tell me why my syntax is wrong?</p>
