This Actions is a Page Action and is applied using Page>Actions>PHP Markup. The button will open a large box for you to type in your code. NB - do not use <?PHP and ?> delimiters.
Some servers require a small line of code right at the start of the page. By switching on the check box labeled Add first line, you can add any required code right at the top of the page.