In the following code, there is a check about if the file is readable or not.
if (is_readable('/dev/urandom') &&
($fh = @fopen('/dev/urandom', 'rb'))) {
$output = fread($fh, $count);
fclose($fh);
}
but to check if readable or not php must access to it (WARNINGS: open_basedir) :
Warning: is_readable(): open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s):
Lot of similar topics on Drupal,WordPress,CodeIgniter, always the same solution
add a @ before is_readable to avoid this warning.
Is that ok for you ?
Thomas