I can’t think what might cause your server to display the document name rather than running the PHP script.