I can't find any mention of this and I can't figure out why this isn't working.
I can send this just fine:
header("Location: test.php");
but this does not work:
$loc = "test.php";
header("Location: $loc");
I checked, and the var is getting parsed. Why wouldn't this work?