Exp-8
May 15, 2024
0
index.php
";
echo "Name Password Email ";
while (($line = fgets($file)) !== false) {
$line = trim($line);
$data = explode(':', $line);
if (count($data) == 3) {
echo "";
echo "" . htmlspecialchars($data[0]) . " ";
echo "" . htmlspecialchars($data[1]) . " ";
echo "" . htmlspecialchars($data[2]) . " ";
echo " ";
}
}
fclose($file);
echo "";
} else {
echo "File not found.";
}
?>
data.txt
oggy: 123: oggy@example.com
jack: 456: jack@example.com
GUYS IF YOU HAVE ANY DOUBT. PLEASE LET ME KNOW