I'm not sure about the buttons, but it appears from the screenshot that PHP is not associated with the page type ( .php ?), so it is not interpreting the code. Looks like you need something like this: https://www.webmasterworld.com/apache/4557229.htm