Cannot get PHP nor JS to work in footer for auto Copyright updating

Copyright © 2006–<?php echo date(“Y”:wink:; ?>

Does not show the current year.

When put in JS it saves to a blank white page and then vanishes.

<script language=”javascript” type=”text/javascript”>

var today = new Date()

var year = today.getFullYear()

document.write(year)

</script>