PDA

View Full Version : mkdir() — Permission Denied?


Jim Dam
03-16-2002, 04:38 PM
How does the mkdir() function work? Is the path of the directory to be created relative to the directory the script is in? No matter what I try, I get permission denied errors while trying to make a directory. Any help would be appreciated.

Jim Dam
03-17-2002, 10:00 AM
After reading through the rest of this forum, I found the answer. The path needed to be full, so I used the $_SERVER['DOCUMENT_ROOT'] concatenated with the filename I wanted. I also had to change the permission of the directory I want the directory made in to 777.