function RecursiveMkdir($path, $mode)
{
if(!file_exists($path))
{
RecursiveMkdir(dirname($path), $mode);
mkdir($path, $mode);
}
}
function RecursiveMkdir($path, $mode)
{
if(!file_exists($path))
{
RecursiveMkdir(dirname($path), $mode);
mkdir($path, $mode);
}
}