Thursday , November 7 2024

Tag Archives: generate code

Generate An Authentication Code in PHP

This basic snippet will create a random authentication code, or just a random string. <?php # This particular code will generate a random string # that is 25 charicters long 25 comes from the number # that is in the for loop $string = “abcdefghijklmnopqrstuvwxyz0123456789”; for($i=0;$i<25;$i++){ $pos = rand(0,36); $str …

Read More »