I am trying to create a directory with mkdir code. When I use this code :
mkdir("test");
then, the "test" directory will be created. But when I try something like this
mkdir($_SESSION['username']);
then, I got an error saying
Warning: mkdir(): open_basedir restriction in effect. File() is not within the allowed path(s)
What does this mean? I also tried
$path = $_SESSION['username'];
mkdir($path);
and
mkdir("".$_SESSION['username']."");
but it gives me the same error message. What am I supposed to do?