timlondon Posted July 24, 2007 Share Posted July 24, 2007 Any ideas why this doesn't work on a Linux server? Could it be the php.ini? $fl = "a"; $name = "andrew5"; $dir = "../members/".$fl."/".$name."/"; mkdir($dir, 0777); Quote Link to comment Share on other sites More sharing options...
NMWD Posted July 24, 2007 Share Posted July 24, 2007 Hi timlondon, yeah, you need to Umask the directory like so: $fl="a"; $name = "andrew5"; $dir = "../members/".$fl."/".$name; mkdir($dir,0777,TRUE); $oldumask = umask(0); umask($oldumask); Hope it helps! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.