From b5af5dbc209393652c0ed8675850a3efaf2fdb36 Mon Sep 17 00:00:00 2001 From: cytoffin Date: Mon, 7 Dec 2020 08:22:05 +0100 Subject: [PATCH] s --- SwichGIT/MorpionMulti/MyDB.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 SwichGIT/MorpionMulti/MyDB.php diff --git a/SwichGIT/MorpionMulti/MyDB.php b/SwichGIT/MorpionMulti/MyDB.php new file mode 100644 index 0000000..9ae6b82 --- /dev/null +++ b/SwichGIT/MorpionMulti/MyDB.php @@ -0,0 +1,22 @@ +open('mysqlitedb.db'); + } +} + +function genererChaineAleatoire($longueur = 10) +{ + $caracteres = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; + $longueurMax = strlen($caracteres); + $chaineAleatoire = ''; + for ($i = 0; $i < $longueur; $i++) + { + $chaineAleatoire .= $caracteres[rand(0, $longueurMax - 1)]; + } + return $chaineAleatoire; +} \ No newline at end of file