smartguyin Posted June 30, 2006 Share Posted June 30, 2006 In my scrip i am trying to create a folder by mkdir() function Buy i get error as below.... Please help me out why am i getting such an error and how can i create the folder by using mkdir() function...===================Warning: mkdir(folder): Permission denied in /home2/buy7net/public_html/submito.php on line 22Warning: mkdir(folder/work/): No such file or directory in /home2/buy7net/public_html/submito.php on line 24===================I am trying to create a folder and after creating that folder i want to create one folder named WORK in it.For this i had set permmission for public_html folder to 777.Still i am getting this error. Please Help Me Out !!! Quote Link to comment https://forums.phpfreaks.com/topic/13282-help-me-got-an-error-while-creating-folder/ Share on other sites More sharing options...
Ferenc Posted June 30, 2006 Share Posted June 30, 2006 try using the whole path mkdir("/home2/buy7net/public_html/folder/work", 0777); Quote Link to comment https://forums.phpfreaks.com/topic/13282-help-me-got-an-error-while-creating-folder/#findComment-51291 Share on other sites More sharing options...
wildteen88 Posted June 30, 2006 Share Posted June 30, 2006 If you are trying to create a folder make sure the the directory inwhile the folder is being created has the correct permissions set, for example public_html directory needs its permission changed so you can write folders to it. You can chnage permission by changing the CHMOD settings. Quote Link to comment https://forums.phpfreaks.com/topic/13282-help-me-got-an-error-while-creating-folder/#findComment-51295 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.