S
skieros
open(FILE, ">>/somefolder/somesubfolder/digest.passwd") or die $!;
print FILE "$user:$realm:" . Digest::MD5::md5_hex("$user:$realm:
$pass") . "\n";
close(FILE);
Wehn i try to use this relative path instead of d:\www\blabla which is
absolute apache tells me it cant find the file.
Why i dotn sue an absolute path then? Because the same script will run
both on localhost and remote server and the paths are not the same, so
i need a relative path in order to work.
I could use the $ENV{'SERVER_NAME'} to determine in which host the
script runs and then set an appropriate path variable but i wan to
avoid that by using a relatiev path.
print FILE "$user:$realm:" . Digest::MD5::md5_hex("$user:$realm:
$pass") . "\n";
close(FILE);
Wehn i try to use this relative path instead of d:\www\blabla which is
absolute apache tells me it cant find the file.
Why i dotn sue an absolute path then? Because the same script will run
both on localhost and remote server and the paths are not the same, so
i need a relative path in order to work.
I could use the $ENV{'SERVER_NAME'} to determine in which host the
script runs and then set an appropriate path variable but i wan to
avoid that by using a relatiev path.