Jump to content

Archived

This topic is now archived and is closed to further replies.

smartguyin

Help Me - Got an error while creating folder

Recommended Posts

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 22

Warning: 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 !!!

Share this post


Link to post
Share on other sites
try using the whole path

mkdir("/home2/buy7net/public_html/folder/work", 0777);

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.