Added the php at every start of php code (if not it wouldn't work, don't know why).