I try below code is working for add a phtml
file in header of Magento.
<reference name="header">
<block type="your_module/yourblockclass" name="yourblockname" template="your_module/yourtemplate.phtml"/>
</reference>
Add the code above to the -layou-handle in your custom layout.xml file. Fetch the block via.
$this->getChildHtml()
from within the header.phtml file.This way it's working fine.
But Suppose you have some custom theme.
you install module and it will create the header.phtml file in app/design/frontend/default/default/page/html/header.phtml in this folder, so the custom theme header.phtml file called this file is not called.
so how to add any phtml file in header for any theme with out use of $this->getChildHtml().