News for hackers. Stuff that matters.
Re:Show HN: 15-question language identification quiz by lojack on Thursday July 13, 2017 @04:04PM (#14764680)
Interestingly enough, question 5 is actually syntactically correct Perl, but not PHP.
Re:Show HN: 15-question language identification quiz by girvo on Thursday July 13, 2017 @10:53PM (#14767074)
> syntactically correct Perl

Not a high bar to clear, mind you ;)

Re:Show HN: 15-question language identification quiz by max-m on Friday July 14, 2017 @08:11AM (#14769146)
Well, it is correct PHP as it is missing an opening "<?php" tag. Therefore the interpreter skips this part and prints it out. :D

When interpreting as PHP however

  if(isset($_SESSION['uid']))
      header("Location: reg");
  }
is either missing an opening bracket or has got one too many closing brackets.