Thread:Project:Support desk/Sidebar Customization -- PHP includes?/reply (2)

You can't echo or print HTML directly from PHP by how MediaWiki works.

You need to use one of the Hooks that provide functionality to alter the contents of the sidebar. You probably want to use Manual:Hooks/SidebarBeforeOutput