I have a bit of a problem. Have application that allows user to upload images. Images are organized into directories created dynamically. I always thought that mkdir() function creates directories with 777 by the default. I checked documentation and that is what it says there: http://hr.php.net/function.mkdir. However all my directories created using mkdir() function have permissions 0755. Even when I force permissions to 777 like
Expand|Select|Wrap|Line Numbers
- mkdir("/path/to/my/dir", 0700);
Now that is not so much of the problem but I am not allowed to touch this files. I can not delete them or change permissions using ftp or file manager provided through cpanel, I contacted my service provider and they told me its PHP5 issue. We changed php to PHP4 and bingo. I was allowed to change permissions and delete files. The only problem now is in need php to be PHP5. Is this a bug or ? Anyone came across this issue before and what was your workaround?