PHP错误,请高手解决
Parse error: syntax error, unexpected '[', expecting ',' or ';' in
C:\Web\lib\function.php on line 480
代码为:
function ssetcookie( $var, $value, $life = 0, $prefix = 1 )
{
global $tablepre;
global $domain;
global $cookiepath;
global $GLOBALS['_SERVER'];说是这行出错
$time = time( );
setcookie( ( $prefix ? "" : "" ).$var, $value, $life ? $time + $life : 0, $cookiepath, $cookiedomain, $_SERVER['SERVER_PORT'] == 443 ? 1 : 0 );
}