I have a script doing the following:
if (!mkdir($dir_name, 0775))
echo "Could not create directory ".$dir_name;
The parent directory that I want to create subdirectories in is set to 775.
When I run it, I get a permission error. What should the permissions be? I know better than to 666 it...