Thanks, it works.
Now I have to understand how to obtain the same string of the server (Solaris Unix).
The word 'giallo', using htpasswd assigns '1dH1ad0JXX0JM'
while my crypt function to the same word, returns:
5./Y/MI/khMY6
I suppose that I also have to remove slashes from the crypted password, isn't it ?
Thank you
Fabio