Im not sure if this is a problem with php or apache but if someone could give me a sollution to my problem Id be eternaly gratefull. Im building a webbased adminstration page for editting htaccess files and adding usere on the fly, but when I execute the following script I get a error message in the apache log. The command it self seems to be working fine but for some reason it fails to create a temp version of the file
SCRIPT:
Code: Select all
$cmd = "C:\\progra~1\\apache~1\\Apache2\\bin\\htpasswd.exe";
$pwfile = "C:\\progra~1\\apache~1\\Apache2\\htdocs\\subdomain.domain.com\\htpasswd";
$user = "test";
$passwd = "test";
$cmdline = "$cmd -c -b $pwfile $user $passwd";
// print "$cmdline<BR><BR>\n\n";
exec($cmdline, $AllOutput, $ReturnValue);Code: Select all
їTue Jul 08 00:48:46 2003] їerror] їclient ---.---.---.---] Automatically using MD5 format.
їTue Jul 08 00:48:46 2003] їerror] їclient ---.---.---.---] C:\progra~1\apache~1\Apache2\bin\htpasswd.exe: unable to create temporary file \/htpasswd.tmp.44MLDmI use the following:
Windows XP
PHP 4.2.3
Apache 2.0.44