domain - subdomain
Posted: Sat Aug 05, 2006 9:39 pm
I got some code here from a script that allows people to host something on my domain but the broblem is that it can only be used on the domain itself at the moment while I need to use it at a subdomain (http://www.something.mysite.com) instead of (http://www.mysite.com). I hope some one can look into this couse this is the line the error warning gives me when I try to open the mainpage after a installation on a subdomain.
Don't know if you can help me out with only this part of the code if not please let me know as well so I know what I am up to.
Thanks in advance, this is the code:
Don't know if you can help me out with only this part of the code if not please let me know as well so I know what I am up to.
Thanks in advance, this is the code:
Code: Select all
$client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : getenv('REMOTE_ADDR') );
$user_ip = encode_ip($client_ip);