So I have this pretty straight foreword code for creating a dir with the name the user inputs, but it just won't create. The folder I am wanting to create it in is a subfoolder. When i test it locally it works just fine but then on the server there seems to be a problem. Can anyone help me ?
$title = str_replace(" ", "_", $_POST['title']);
if (!is_dir("uploads/".$title)){
mkdir("uploads/".$title, 0777);
I guess it lies with the path ? But I just couldn't find out why.
Thanx guys
Chris