Hi im building a website that requires the dynamic build of a filestructer based on user regestration details, this would be in the creation of a usr directory, the subdirectory level would be the id of the directory based on a php script, this so far i can create no issues with chmod 777. however when i try and create subdirectories in the id directory such as an images folder then a html folder and a css folder i keep getting permission errors. the server is a linux server on my resellers hosting account
following is the php code
$dirPath = "../userDirectory/$diectoryid/";
echo $dirPath;
mkdir ('$dirPath/image/',0777,true);