Nicolas D said:
Your problem is that you do not have the required permissions, what else?
You don't tell us what OS you are using, but if it is a *nix-flavor
one, you may need to change the permisssions on the directory that
the file is in, rather than the permissions on the file itself...
my OS is mandrake10 with "Apache-AdvancedExtranetServer/2.0.48
(Mandrake Linux/5mdk) mod_perl/1.99_11 Perl/v5.8.3 Server at 127.0.0.1
Port 80"
i write
"User apache
Group apache" in httpd2.conf,
the perl script is ok when i excecute it in the directory, i can write
in the file, but when i launch it with apache i obtain "permission
denied" when the script open the file with write access rights,
i create a login with apache user and apache group but no results,
i think my problem is that i don't know how configure apache to have
write rights....so i download the perl and apache documentation and i
ll read it.
Excuse for my english wich is as bad as my perl knowledge.[/QUOTE]
then make sure to
a) make sure the writing happens in the directory you
think it does, by doing a chdir or changing the open to
my $fullpath='/fullpath/to/dir/commandes.txt';
open (FICH, ">> $fullpath")
|| die " error: could not open '$fullpath' :$!";
b) make sure that said directory is owner and/or writable
by user or group apache
gnari