PHP 4.0.6 and Apache 1.3.20
I'm using a password authentication scheme where I read from a password file through an Alias in Apache httpd.conf:
Alias /passwd /etc/apache/passwd
$data = file("http://myserver/passwd/users");
foreach ($data as $line){
print("<br>$line");
}
This works fine.
However, when I try to write to the file:
$fp = fopen("/passwd/users","a");
$bytes = fwrite($fp,$entry);
print("<p> $bytes bytes written.");
if(fclose($fp))
echo("<br>File closed");
else
echo("<br>File close error");
... it tells me that 23 bytes were written, $fp = file resource #1, and the file closed properly.
The problem is that the "users" file remains untouched.
Also:
I get no php errors.
The 'passwd' directory and the 'users' file have write access.
* php.ini:"allow_url_fopen = On
Thanks for any suggestions.