PHP Create Folder if it doesnt exist

Hi All,
I have been battling with this code for a few days.
I know for a fact, the variables are working.
Any idea why this is not creating a directory?

if(!is_dir("../../uploads/schools/".$tsid."/corporateclients/".$corpid."/")) 
{
mkdir("../../uploads/schools/".$tsid."/corporateclients/".$corpid."/");
}

Try passing the “recursive” parameter. http://www.php.net/mkdir