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); Link to comment https://forums.phpfreaks.com/topic/61590-mkdir-problems/ 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! Link to comment https://forums.phpfreaks.com/topic/61590-mkdir-problems/#findComment-306635 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.