I tell my story: I changed our server from M$ Windows to Linux.
I wrote a php script that makes language files for my website. In the past it worked perfect but now i have a permission problem.
I get the following error when writing a file:
code:
$handle = fopen($filename, "w+");
fwrite($handle,$buffer);
fclose ($handle);
result:
Warning: fopen(/httpdocs/lang_EN.php): failed to open stream: Permission denied in /httpdocs/label.php on line 133
It works if i do a chmod -R 777 on the directory but this is not secure! My question is to give php the access to write to a few dirs without 777 for the directory.
thanks in advance