Jump to content

make new directory


almightyegg

Recommended Posts

[code=php:0]
if($doublecheck == 0){
    echo 'Your account could not be activated!';
} elseif ($doublecheck > 0) {
$directory = mkdir("images/player/$userid");
    echo 'Your account has been activated! To return to site <a href="http://www.lordoftheabyss.com/index.php">CLICK HERE</a>';
}
[/code]
comes up with Warning: mkdir(images/player/21) [function.mkdir]: No such file or directory in /home/lordofth/public_html/activate.php on line 27
i dontm know why :(
Link to comment
Share on other sites

Check the permissions on the players directory. Odds are you will need to CHMOD it so that the script has the needed permissions.

Do some research on CHMOD though, you want to make sure you set it to just enough permissions, don't ever leave it wide open.
Link to comment
Share on other sites

[quote author=almightyegg link=topic=113778.msg462932#msg462932 date=1162664914]
hmm...i found one that i thought could help...so i changed the file permissions to -rw-rw-rw- but it still shows:
Warning: mkdir(/home/lordofth/public_html/images/players/21) [function.mkdir]: Permission denied in /home/lordofth/public_html/activate.php on line 27
[/quote]
You should make sure that safe_mode in your php.ini is turned off if possible. Next you should check that the directory that you want to have write permissions in, has the permissions 775, the owner your user and the group should be the group that runs apache (type 'groups apache' to find out in a terminal).
Also, when you are relying on a hosting provider, check with them if they haven't disabled some functions (like mkdir).
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.