when I tried to mkdir(/the/dir/); and rmdir(/the/dir); a warning says the mkdir and rmdir both failed due to a permission problem. could someone help me solve the problem?
Not to sound trite, but have you looked at changing the permissions of the dir you are writing to?
please enlighten me
say you want to create the directory in /usr/local/htdocs/ if you don't have permission to write int hat dir, it won't work.
I'm assuming this is Linux/Unix server. Check this for info: http://www.isu.edu/departments/comcom/unix/workshop/files.html
Some useful instructions can be found here: http://uwsg.iu.edu/usail/tasks/fileper/fileper.html
(both found with Google, using search string (without quots): "file directory permissions")