This commit is contained in:
2026-03-23 14:01:45 +01:00
parent ca8ce10644
commit 0bccb2e3a3
21 changed files with 594 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
<?php
function createPassword($n,$alphabet){
$length = strlen($alphabet);
$password = "";
return $password;
}
?>
+35
View File
@@ -0,0 +1,35 @@
<?php
include './include/fonction.php';
$alphabet = "@#!*^&azertyuiopqsdfghjkklmwxcvbnAZERTYUIOPLMKJHGFDSQWXCVBN1234567890";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Exercice 5</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css"
>
</head>
<body>
<main>
<hgroup>
<h2>Exercice 5 : createPassword </h2>
<h3>
Test de la fonction createPassword
</h3>
</hgroup>
<article>
<ul>
<li><code><?php echo createPassword(5, $alphabet);?></code></li>
<li><code><?php echo createPassword(10,$alphabet);?></code></li>
<li><code><?php echo createPassword(15,$alphabet);?></code></li>
</ul>
</article>
</main>
</body>
</main>
</html>