PHP mkdir issue!

Posted by Richard González Alberto on Stack Overflow See other posts from Stack Overflow or by Richard González Alberto
Published on 2010-05-19T04:32:56Z Indexed on 2010/05/19 4:40 UTC
Read the original article Hit count: 373

Hi,

I trying to create some dirs like this:

@mkdir("photos/$cat/$sku", 0777, true)

it creates the first directory with 0777 permissions, but when it creates the second is uses 000 as it's perms, so it fails to create the third.

A workaround this please?

Thanks, Richard.

© Stack Overflow or respective owner

Related posts about php

Related posts about mkdir