New to posting long time lurker.
First off to get an idea of what I'm talking about go here
http://www.openwall.com/phpass/.
I'm using version 0.3 which you can download here
http://www.openwall.com/phpass/phpass-article-3.zipIt's used in a number of projects, from wordpress to oscommerce, and I just recently implemented it with my project. It was working fine on my local development machine no problems.
I did testing on my lunarpages shared host website and phpass is throwing a read directory warning.
Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): ('.:/proc/uptime:/tmp:/home:/usr/local/lib/php:/nfs/home:/usr/home:/usr/local/bin/') in /home/reveur2/public_html/medicationforall/framework/framework/PasswordHash.php on line 51
Screenshot of the warning
http://www.medicationforall.com/image/phpass.pngThe code still works and generates a hashed password. I did do some searching and found this post
http://forums.oscommerce.com/index.php?app=tracker&showissue=128 but all he is doing is error suppression. Whats the mechanics thats making this code throw a warning in the first place? And is there a better alternative than just suppressing the warning?