win2k

dose anyone know how to make the format for making the password.

ie rather than keep going to the dos promt and inserting it manually i want to make a perl script that will do it for me but i am not sure of the win dose this for the .htpasswd

ie

win version

name:$apr1$4U5.....$4dOz71dQMUDCnl4500ysz1

on apachie it looks like this

name:anpiztUIAgztQ

i need a form like
$passwordfilter= q<\A[\s0-9A-Za-z!@#$%^&*()_+|`~-=:;\'\",.\/?[]{}]{5,15}\Z>;
but so that it make the windows format and not the unix the above is for unix what do i need to add to it for windows.

    Just use perl to call the built in Apache htpasswd.exe and pass the username and password with the call. Something like:
    htpasswd .htpasswd username password
    If the file doesn't exist you will have to include to -c option.

      Or you can use the php function exec() to do the same (since this is a php forum rather than a perl one...)

        Write a Reply...