Buggy header in php
Today, I got a problem in a php script. I was using header() function in the if-else branching. The code is something like
if(condition1)
{
header(”Location:dummy.php?err=1″);
}
else
{
header(”Location:dummy.php?err=2″);
}
if(condition2)
{
header(”Location:dummy.php?err=3″);
}
else
{
header(”Location:dummy.php?err=4″);
}
a contition may fullfill both condition 1 and 2. But in this case I want to go through the first if clause. I run the script and saw that the final page is [...]
