That would be fairly simple to convert to php, the structure wouldn't need to change just a few commands, wrap it in <?php ?>, and document.write becomes echo"";
check on php.net to find out how to use the date function and you don't need to specify var hours for a variable but all variables do need a $ symbol ($hours = Date())
|