Jump to content

permission problem i think mkdir.


jonathanfla

Recommended Posts

Im in the process of setting up a social media site , Just switched from basic hosting to Dedicated Server

Everything was working till i switched .

 

I have a basic join forum and email activation , On the register.php file it tell script to make a directory mkdir into member/folder like this below, But it will  make the folder for the id of that user but will not let them upload any images?. At first it wouldnt even make a folder but i found out it was a permissions issue with my server i fixed it , im guessing the upload is also a permission's issue ? But the script automaticly make the members/"$id" folder and i dont know how to set permission for auto create folder that if i even have to ? so confused.

 

(BEGGGGINGG !! FORRRRR HELPPPPPPPPPPPPPPPPPPPP!

Im running a dedicated server with godaddy, On centOs w/ Plesk Panel 9.3.0

-------------------------------------------------------------------------------------------

 

$id = mysql_insert_id();

 

// Create directory(folder) to hold each user's files(pics, MP3s, etc.)

mkdir("members/$id", 0755);

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.