mkdir

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ecaandrew
Forum Commoner
Posts: 72
Joined: Fri Nov 12, 2004 5:05 pm

mkdir

Post by ecaandrew »

im trying to make a directory, but i keep getting this.


Warning: mkdir(/home/idesign/public_html/ecaandrew): Permission denied in /home/idesign/public_html/beta/register.php on line 31

Code: Select all

mkdir('/home/idesign/public_html/ecaandrew', 0777);

please help, thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'll bet the user your script is running under doesn't have write permission to your public_html directory. Try doing a deeper one.. if that doesn't work, you may be able to do it through the FTP functions... :?


:oops: yar. :)
ecaandrew
Forum Commoner
Posts: 72
Joined: Fri Nov 12, 2004 5:05 pm

Post by ecaandrew »

i tryed making a folder in /beta/, i chmodded the directory to 777 as well, still not working :(


how would i do this?
ecaandrew
Forum Commoner
Posts: 72
Joined: Fri Nov 12, 2004 5:05 pm

Post by ecaandrew »

i got it to work, thanks! :)
Post Reply