Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2005

    Unanswered: Resetting pasword

    I have this error when a user wanted to reset his or her password using PHP codes.
    This is the error below:

    Warning: fopen(H:\RESET) [function.fopen]: failed to open stream: Permission denied in H:\Apache2\htdocs\LOGIN\user_auth_fns.php on line 106
    Your password could not be reset - please try again later.

    I have created this directory but it is still giving the same error.

    Also line 106 of user_auth_fns.php is here below: $dictionary = 'H:\RESET'; // the ispell dictionary while other lines are here below:

    function get_random_word($min_length, $max_length)
    // grab a random word from dictionary between the two lengths
    // and return it
       // generate a random word
      $word = '';
      //This path to suit your system
      //$dictionary = '/PRIVATE/FLEX/words';  // the ispell dictionary
      $dictionary = 'H:\RESET';  // the ispell dictionary
      $fp = fopen($dictionary, 'r');
        return false; 
      $size = filesize($dictionary);
    What could be the problem?
    Last edited by rhs98; 01-12-06 at 19:24. Reason: formatting

  2. #2
    Join Date
    Feb 2002
    San Francisco, CA
    I'd say its a permissions problem. Move the file "RESET" (which is an odd name for a dictionary) to a directory where the webserver has permissions to read it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts