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
https://forums.phpfreaks.com/topic/217256-permission-problem-i-think-mkdir/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.