Category Archives: PHP

Password Hashing in PHP

Functions for hashing password password_hash() password_verify() password_hash() – Syntax: string $password – Password provide by user integer $algo – Password algorithm constant(PASSWORD_DEFAULT and PASSWORD_BCRYPT) PASSWORD_DEFAULT – uses the BCrypt algorithm to create the hash PASSWORD_BCRYPT – uses the CRYPT_BLOWFISH algorithm and will return a 60 character string $options – $options have two indexes.One is cost… Read More »

TURN OFF DISPLAY ERROR IN PHP

Method 1 & 2 & 3 https:///…-standards-error-fix Method 4 error_reporting(0); ini_set(‘display_errors’, ‘0’);     # don’t show any errors… error_reporting(E_ALL | ~E_STRICT);  # …but do log them Few more http:///…-standards-in-joomla https:///…-reporting-explained