Recursive mkdir() and chmod()?

Just tested on gentoo linux with PHP 5.2.12: They all have the same permissions.

The C function responsible for mkdir('localfilesystem', x, true) is php_plain_files_mkdir() in main/streams/plain_wrapper.c. And it calls php_mkdir(dir, mode TSRMLS_CC); for the "first" directory it is supposed to create and VCWD_MKDIR(buf, (mode_t)mode)) for all subdirectories. Php_mkdir() does some safe mode checking and then also calls VCWD_MKDIR So yes, the mode parameter is used for all directories created by mkdir(p, x, true).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions