Jump to content

Help Me - Got an error while creating folder


smartguyin

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.