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