Simple Panels question on where the panels get placed on the page
Panels places the panel into the 'content' region of the selected page.

If you want to place it somewhere else on the page, try using mini-panels to create a block and place it that way.  No need to write custom PHP code for that.