Making directories for users?
-
Heya, my website is here, I’m trying to make it so that when a user registers on my site it’ll automatically create a directory for them (https://pixelsgame.org/upload/USERNAME) which they can later use for uploading files to use in their posts, I’m using this code just after the account activation:
‘<?php mkdir(“/upload/” . $user_info->user_login); ?>’
But the directory is not created upon activation and I receive this error:
‘Warning: mkdir() [function.mkdir]: Permission denied in /hermes/bosweb/web096/b966/ipg.pixelsgamenet/wp-content/plugins/buddypress/bp-themes/bp-default/registration/activate.php on line 14’
I made sure that activate.php has permisions 0777 (everything turned on) but still get the same error, don’t suppose anybody could help, also I know it’s terribly thankless of me to ask but I’d be eternally grateful if you could also look at this other unresolved issue I’m trying to tackle. Thanks a lot for looking!
- The topic ‘Making directories for users?’ is closed to new replies.