+ 1
Prolem in superglobal variable, could u guys pls help me??
<?php echo "$_SERVER['HTTP_HOST']"; echo "$_SERVER['PHP_SELF']"; echo "$_SERVER['SERVER_NAME']"; echo "$_SERVER['REMOTE_ADDR']"; echo "$_SERVER['REMOTE_HOST']"; echo "$_SERVER['REMOTE_PORT']"; echo "$_SERVER['SCRIPT_FILENAME']"; echo "$_SERVER['SERVER_PORT']"; echo "$_SERVER['SCRIPT_NAME']"; echo "$_SERVER['SCRIPT_URI']"; ?> But whn I run it, it says: Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number............
1 Odpowiedź
+ 2
try with this:
echo $_SERVER['HTTP_HOST'];
(remove the "" at echo)