interruption while running php file
<p>this is my code in php
bt its not working problerly as required..the output is not according to this..
i m trying to run this in wamp server.</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Binary Search&lt;/title&gt;
    &lt;style type="text/css"&gt;
        h1 {color: blue}
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1 align="center"&gt;Computer guess number by using binary search&lt;/h1&gt;
&lt;form method="GET"&gt;
&lt;?
if (empty($flag_num))
{
    $flag_num = -1;
}
if ($flag_num==-1)
{
if (empty($max_num)) $max_num = -1;
if (empty($min_num)) $min_num = -1;
$flag_num = 1;
print &lt;&lt;&lt;Here
&lt;input type="hidden" name="flag_num" value="$flag_num"&gt;
&lt;input type="hidden" name="max_num" value="$max_num"&gt;
&lt;input type="hidden" name="min_num" value="$min_num"&gt;
Input your hidden number: &lt;input type="text" name="hid_num" value="$hid_num"&gt; (1-99)
&lt;br&gt;
&lt;input type="submit" value="Now let's computer guess"&gt;
Here;
}
else 
{
if ($max_num==-1 &amp;&amp; $min_num==-1)
{
    $max_num = 100;
    $min_num = 0;
    $result_num = $hid_num;
}
else 
{
    if ($comparision == "bigger")
    {
        $min_num = $guess_num;  
    }
    else if ($comparision == "smaller")
    {
        $max_num = $guess_num;  
    }
}
$guess_num = ($max_num + $min_num)/2;
setType($guess_num,"integer");
print "Computer guess &lt;h3&gt; $guess_num &lt;/h3&gt;";
if ($guess_num == $result_num)
{
    $flag_num = -1;
}
if ($flag_num == -1)
{
    print &lt;&lt;&lt;Here
&lt;input type="hidden" name="flag_num" value="$flag_num"&gt;
&lt;h1&gt; Congratulation, Computer win &lt;/h1&gt;
&lt;input type="submit" value="Next&gt;&gt;&gt;" &gt;
Here;
}
else 
{
    print &lt;&lt;&lt;Here
&lt;input type="hidden" name="flag_num" value="$flag_num"&gt;
&lt;input type="hidden" name="max_num" value="$max_num"&gt;
&lt;input type="hidden" name="min_num" value="$min_num"&gt;
&lt;input type="hidden" name="guess_num" value="$guess_num"&gt;
&lt;input type="hidden" name="result_num" value="$result_num"&gt;
&lt;br&gt;
Your intruction: &lt;input type="radio" name="comparision" value="bigger"&gt; Bigger
                 &lt;input type="radio" name="comparision" value="smaller"&gt; Smaller
&lt;br&gt;
&lt;input type="submit" value="Submit"&gt;
Here;
}
}
?&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
