chmod'ing before you save only works if the file already
exists, duing the save makes no sense at all. After is
really what you should be doing. But ... you are missing
something ... always check to see if the operation worked:
chmod $mode, '$filename' or die "can't chmod: $!";
I'll wager my money that a user other than the one that your
web server runs as (prolly you) owns that file or the
directory that will contain that file. Make sure you first
manually chown -R that directory to the user that
your web server runs as first. You can find out who
that user is with a quick:
grep ^User /path/to/apache/conf/httpd.conf
on a *NIX command line.
jeffa
L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)
|