if (!isset($_GET['storevisitor']))
echo('No parameter.\n<br />');
else if (is_null($_GET['storevisitor']))
echo('storevisitor is null.');
else if ($_GET['storevisitor']) == '1') // GIVES ERROR HERE (LINE #6)
echo('Storing IP.\n<br />');
else
echo('IP won\'t be stored.');
http://localhost/?storevisitor=1
And this is the error message given:Parse error: syntax error, unexpected T_IS_EQUAL in C:\Development\Server\DocumentRoot\index.php on line 6
What do you think the problem is?
[Edited by - ApochPiQ on July 26, 2009 12:56:32 PM]