The following code is not generating an output in WAMP on windows.
Works fine on MAMP.
Guessing it’s a missing module or something.
$reportHash = str_replace(
array('+','/','='),
array('-','_',''),
base64_encode(file_get_contents('/dev/urandom', null, null, -1, 16)));
There is no
/dev/urandomon Windows.Use
uniqid()for a portable random string generator ormt_rand()for a portable random number generator.