Error in template editor when trying to save PHP changes?

Anonymous
Not applicable
I wanted to change my copyright 2012 to a simple PHP copyright <? print(Date("Y")); ?>, but when I try to do so in the template editor, it errors trying to save. Multiple times. If I change 2012 to 2013 it saves fine, but that just puts off the problem for a year.

Anyone else seen an issue where adding PHP to a template causes it to error out saving? Were you able to get around it?
Tags (1)
3 REPLIES 3
Anonymous
Not applicable
Use Javascript, here's the code you need: https://gist.github.com/longjasonm/4658095
Anonymous
Not applicable
For this case, Javascript might work pretty well though.
Jep_Castelein2
Level 10
You can't add PHP to a template. There are a couple of system PHP includes, but you can't add your own.