comparison php/requestKey.php @ 3123:c7de85e03321

As 5pm approaches,the error count increases (YAUC)
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Wed, 18 Jul 2018 16:53:38 +0100
parents edd536f01e4b
children
comparison
equal deleted inserted replaced
3122:3e97bf9d24cf 3123:c7de85e03321
1 <?php 1 <?php
2 incluce_once("config.php"); 2 include_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 = '';