Move inline PHP code to separate file