020 555 1111
  • Old fashion, modular, procedural PHP plus some scaffolding techniques to allow it to mimic MVC simplicity.
  • A quick reference to help you find in PHP maze what needs to be done and how to do it.
  • Learn a PHP Object Oriented Programming by building a live discussion forum application.
  • MVC - Model View Controller - real life, easy reference and application.
This product has options, take a look at them and select ones you like the most.
Options are displayed under image section.

Password functions: encrypt and validate encrypted
[php functions]

 

// This function encrypts a phpass password from a plaintext
// password.
  function encrypt_password($plain) {
    if (!class_exists('PasswordHash')) {
      include(DIR_WS_CLASSES . 'PasswordHash.php');
    }
    $pass_hash = new PasswordHash(10, true);
    return $pass_hash->HashPassword($plain);
  }

// This function validates a plain text password
  function validate_password($plain, $encrypted) {
    if (isset($plain) && !empty($plain) && isset($encrypted) && !empty($encrypted)) {
      if (!class_exists('PasswordHash')) {
        include(DIR_WS_CLASSES . 'PasswordHash.php');
      }

      $pass_hash = new PasswordHash(10, true);
      return $pass_hash->CheckPassword($plain, $encrypted);
    }
    return false;
  }