I'm trying to deploy php project on localhost using Winginx
Now poking around this php code
public static function compareIP( $ip, $mask )
{
$arr1 = ( ".", $ip );
$arr2 = ( ".", $mask );
$good = true;
$i = 0;
while ( $i < ( $arr1 ) )
{
if ( $arr2[$i] != "*" && $arr2[$i] != $arr1[$i] )
{
$good = false;
break;
}
++$i;
}
return $good;
}
Server returns
Parse error: syntax error, unexpected ',' in C:\Winginx\home\site.com\index.php on line 54
Where line 54 is
$arr1 = ( ".", $ip );
I'm new to php and just want to deploy project, but google didn't give any hints.
I have no idea what could be wrong.