nas2013 Posted November 29, 2013 Share Posted November 29, 2013 Hi, I have a header that I use in my website outside whmcs portal template, I want to call the header just like I do to any page in my website to the portal template and when I add the following line to header.tpl nothing is showing: <?include_once"http://www.mydomain.com/myheader.php";?> what could be the problem not letting my header show in header.tpl Thanks in advance for your help, 0 Quote Link to comment Share on other sites More sharing options...
SeanP Posted November 29, 2013 Share Posted November 29, 2013 (edited) Try this in your header.tpl: {include_php file='/full/file/path/to/myheader.php'} If the header resides on another server, you can use the following in your header.tpl: {php} $remoteheader = file_get_contents('http://www.mydomain.com/myheader.php'); echo $remoteheader; {/php} Edited November 29, 2013 by SeanP 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.