Guys, thank you for your replies!
using .htaccess from the command line:
bash-2.03# /usr/local/apache/bin/htpasswd /path/to/auth/file/auth_file
username
New password:
Re-type new password:
Adding password for user username
How would I do this using that module? From what I can see there doesn't
seem to be anything that adds usernames. How do I do that?
# does this line mean the path to .htaccess file is passed to the
constructor?
# how does it know which auth file to use?
my $obj = Apache::Htaccess->new($path_to_htaccess);
Cheers for any more tips you can share.
Graeme :)
Graeme McLaren wrote:
Afternoon all, I was thinking about writing a perl script which would add
users to an .htaccess file.
How would I invoke htpasswd from a perl script? I'm thinking I'll need to
use the system command.
system or backticks or qx() but you'd probably be better off with a Module:
http://search.cpan.org/search?query=htaccess&mode=module
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>