I\'ve got the following piece of code on a PHP 5.2.4 (no safe_mode) linux server:
mkdir( $path, 0777, true );
when I enter a path like:
The intermediate directories created are set based on the current umask. You want something like this
umask(0777); mkdir($path, 0777, true);