Well i use mkdir to create directories for different "projects" in a photo gallery. When these directories are created by my php script, it won't upload anything in them, won't even create *.txt files. If i create em using the "New Folder" button from the control pane, everything works just fine.
Any known issues?

CODE
umask(0);
if(!is_dir("./img/".$type."/".$year."/ico/".$nr)) mkdir("./img/".$type."/".$year."/ico/".$nr, 0777);


the folder has all of the rights, but nothing will go in it...
Any help welcome. Thank you.

added:
And another issue. The "New Folder" button won't allow me to create a folder named "0" (zero). But actually i can create it using php. It won't delete when deleting with "Delete Selected" button. It will be deleted when hitting the "delete folder" button to the right. It's just a bug i think....