Created
June 15, 2022 13:05
-
-
Save mcunha98/8c5cc9f48a595978627d6ce99e74fd08 to your computer and use it in GitHub Desktop.
Revisions
-
mcunha98 created this gist
Jun 15, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ <!DOCTYPE html> <html> <body> <?php for ($i = 1; $i <= 10; $i++) { echo guid() . "<br>"; } function guid() { $base = md5(uniqid() . time() . rand(1000,9999)); return substr($base,0,8) . "-" . substr($base,8,4) . "-" . substr($base,12,4) . "-" . substr($base,16,4) . "-" . substr($base,20,12); } ?> </body> </html>