I am trying to install PHP script. During installation it detects the whole URL using:
def_exp => '$str = “http://”.$_SERVER[‘HTTP_HOST’].$_SERVER[‘SCRIPT_NAME’];
HOWEVER, for some reason the URL it detects is my___domain.com/cgi-system/php.cgi
which is not true because it suppose to show ONLY my__domain.com/
It seems that $_SERVER[‘SCRIPT_NAME’ is responsible for this, is there any way to fix it? I am concerned about this because $_SERVER[‘SCRIPT_NAME’ is used throughout the whole script system.
Is there a way to change it or something?