Mercurial > hg > webaudioevaluationtool
comparison php/requestKey.php @ 3121:edd536f01e4b
Include config.php
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Wed, 18 Jul 2018 16:51:26 +0100 |
parents | 53d701288da5 |
children | c7de85e03321 |
comparison
equal
deleted
inserted
replaced
3120:53d701288da5 | 3121:edd536f01e4b |
---|---|
1 <?php | 1 <?php |
2 | 2 incluce_once("config.php"); |
3 function generateRandomString($length = 32) { | 3 function generateRandomString($length = 32) { |
4 // from http://stackoverflow.com/questions/4356289/php-random-string-generator | 4 // from http://stackoverflow.com/questions/4356289/php-random-string-generator |
5 $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | 5 $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; |
6 $charactersLength = strlen($characters); | 6 $charactersLength = strlen($characters); |
7 $randomString = ''; | 7 $randomString = ''; |