smiley_kool Posted June 9, 2009 Share Posted June 9, 2009 hi, i wrote a script in php which will create the directory with permission. the below script wil create a directory but it doesn't give permission to write a file in the directory which is been created. can someone help me out <?php $thisdir = getcwd(); if(mkdir($thisdir ."/myfiles" , 0766)) { echo "Directory has been created successfully..."; } else { echo "Failed to create directory..."; } Link to comment https://forums.phpfreaks.com/topic/161491-how-to-create-a-directory-with-read-n-write-permission-in-php/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.