Dodam, że mam serwer ftp i dodanego użytkownika z katalogiem domowym takim jak apache. Znalazłem coś takiego:
Cytuj:
Your code produces an error like: "Warning: fopen(<some filename>) [function.fopen]: failed to create stream: Permission denied in <your script> on line <line number>"
In general, the user who is running this script does not have permission to the file. A web server will run as a specific user, and so any scripts that run through a web server will also run as if invoked by the server's user.
You can fix this by using the permission modification functions of your operating system to give the appropriate user permission to the file.
Jak w NND nadać te prawa użytkownikowi?