32 lines
No EOL
944 B
PHP
Executable file
32 lines
No EOL
944 B
PHP
Executable file
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Document</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container mt-4">
|
|
<?php
|
|
|
|
$lines = file("data1.txt");
|
|
|
|
foreach ($lines as $line) {
|
|
$line = trim($line);
|
|
$parts = explode(" ", $line);
|
|
$prenom = $parts[0];
|
|
$nom = $parts[1];
|
|
$email = $parts[2];
|
|
$tel = $parts[3];
|
|
echo "<h1>$prenom $nom</h1><p>Email : <a href='mailto:$email'>$email</a><br/>Tél : $tel</p>";
|
|
}
|
|
?>
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|