I'm having trouble creating directories. I'm trying to create a new directory with chmod 757. When I use:
mkdir($dir,0757)
It creates a directory, but with chmod 755. I have to use chmod() to change the directory's chmod value. I have never run into this before. mkdir() allways seemed to do the job. I'm sure using chmod() won't cause problem but I'm still courious as to why I have to use it. Could it be the server?