Ask about general coding issues or problems here.
Moderators: macek, egami, gesf
- Posts: 830
- Joined: Tue Jan 21, 2003 10:42 pm
- Location: Michigan USA
your script is fine it's the test.file that does not have the correct permissions. You are opening test.file to write to it. So test.file needs write permissions on it. if the file does not exist yet you will need to create it and change the permissions of the output file to 777. another thing you can do is chown the directory to use the webserver user. usually nobody.
Let me know if you don't understand
- Posts: 1257
- Joined: Thu Jun 20, 2002 10:14 pm
- Location: Ukraine, Crimea, Simferopol
permission 644 for root.....
for all different users 777 but some hakers may use this.
Return to “PHP coding => General”
Who is online
Users browsing this forum: Google [Bot] and 1 guest