| Current Path : /var/www/html/venkat/check1-iws44/ |
| Current File : /var/www/html/venkat/check1-iws44/program.php |
<?php
$section1 = "sec_cdec.txt";
$result = shell_exec("cat $section1");
$result = explode("\n", $result);
$i = 0;
$j = 0;
echo "------------------------------------------------------------------<br>";
while ($result[$i]) {
$result1 =explode('|', $result[$i]);
//echo $result1[5].'j';
if ($result1[5] == " Correct "){
$v = htmlspecialchars(shell_exec("cat file/sec_c/$result1[0]"));
echo "<b>".$result1[0]."</b><br>";
echo "<pre>".$v."</pre>";
echo "<br>--------------------------------------------------------<br>";
$j++;
}
$i++;
if($j == 6){
break;
}
}
?>