Results 1 to 7 of 7
Thread: Cpanel skeleton directory
04-29-2003, 01:14 PM #1phiGuest
I wish to have a "account setup" file loaded by default. hence have uploaded it to the cpanel skeleton directory. is there a way to setup certain links or text according to the domain it is uploaded to?
e.g. in the page I have a "you may login at http://www.yourdomain.com/cpanel". how do I replace the domain name with the actual one the file is being uploaded to? Is there a way?
04-29-2003, 01:47 PM #2kkGuest
This should be achieveable with PHP and the HTTP_HOST variable.
04-30-2003, 11:57 PM #3phiGuest
could you show me how? or point me to a site that has more information on how to achieve that? Thanks
05-01-2003, 02:32 AM #4mz-elliotGuestCode:
<p><?=$_SERVER['HTTP_HOST']?> is hosted by MyGreatHostingCompany.com</p>
05-01-2003, 10:11 AM #5kkGuest
Obviously make sure you make that index page index.php in order for the HTTP_HOST variable to parse.
05-01-2003, 11:51 AM #6phiGuest
Thanks mz-elliot and 1000rpm! I've gotten it to work!
05-01-2003, 04:02 PM #7kkGuest