How can I go through my own .htaccess
===

I have protected a private area with .htacces on a local website. Is it possible to have a php file which it goes through htacces WITHOUT retyping on my keyboard my login/password ? Is there a solution just with php ?
Thanks