I am working on a project where I need to generate a random value and assign it to a variable… Initially I was doing this: var=$(date +%s | sha512sum | base64 | head -c 12 ; echo) Which was okay until I started executing my script more than once in a short period of time. […]
PHP and /dev/urandom Do NOT Get Along… Using OpenSSL to Generate Random Values
nbeam published 8 years ago in Linux, PHP, Programming, Shell Scripting. Tags: /dev/urandom, bash scripting, generate random values, PHP, urandom
0
PHP – Get variables from INSIDE of a Function -> OUT of the function using LIST().
nbeam published 8 years ago in Development, Drupal, PHP, Programming. Tags: Drupal, Get Variables Out of Function, Handling Function Output, List Function, PHP, Scoping, Variables
I have been learning a ton of PHP lately in an effort to build a significant amount of custom functionality into a Drupal website. As I am not a developer by trade it has been a steep climb upward. Lately I have been refactoring a lot of my code using functions. Being a noob however, […]