Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2006
    Location
    D?sseldorf
    Posts
    2,858
    Tokens
    2,256

    Latest Awards:

    Default .htaccess question

    Hi

    Would it be possible, where you password protect a directory, to make it, so when thew person uses the useranem and password, it automatically deletes it self?

    So can't be used again?

    Thanks
    Luke

  2. #2
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    2,087
    Tokens
    138

    Latest Awards:

    Default

    I'm not entirely sure if that would be possible, the way I thought of doing it would be to read the contents of the current .htaccess file and then re-create it/overwrite the old file without the login that had been used.

    Although I don't know if that would be possible because you would need to call a php script that would get the username and password that had been used. Someone else could probably help you out more, but if all else fails you could just use a simple php login that removes the details after they have been used.

  3. #3
    Join Date
    Nov 2006
    Location
    D?sseldorf
    Posts
    2,858
    Tokens
    2,256

    Latest Awards:

    Default

    Quote Originally Posted by Johno! View Post
    I'm not entirely sure if that would be possible, the way I thought of doing it would be to read the contents of the current .htaccess file and then re-create it/overwrite the old file without the login that had been used.

    Although I don't know if that would be possible because you would need to call a php script that would get the username and password that had been used. Someone else could probably help you out more, but if all else fails you could just use a simple php login that removes the details after they have been used.
    How would i come about, because, what i have is, a PHP form (start.php) in a directory. And i woldn't know where to start with the password protect etc.

    Thanks
    Luke

  4. #4

    Default

    Solved. Now give me rep bizatch.

Posting Permissions

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