Una cosa del genere
dovrebbe fare al caso tuo
<?php
function getNewName($imageName)
{
$newName = time();
$ext = strtolower(strrchr($imageName,"."));
return $newName.$ext;
}
echo getNewName("image.jpg");
?>