Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: