Jump to content


Photo

Help Me - Got an error while creating folder


  • Please log in to reply
2 replies to this topic

#1 smartguyin

smartguyin
  • Members
  • PipPipPip
  • Advanced Member
  • 61 posts

Posted 30 June 2006 - 09:57 AM

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 !!!
One of my php project >> http://www.mumbaipropertysite.com

#2 Ferenc

Ferenc
  • Members
  • PipPipPip
  • Advanced Member
  • 94 posts

Posted 30 June 2006 - 03:51 PM

try using the whole path

mkdir("/home2/buy7net/public_html/folder/work", 0777);
Everything you want to know is here.

#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 30 June 2006 - 03:55 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users