I need a function to traverse a pathname
to check if the path exists, if not start from scratch
and create (MkDir) the path.

Let's say:

$to_path = "c:\\aaa\\bbb\\ccc\\ddd\\";
or
$to_path = "c:/aaa/bbb/ccc/ddd/";

if(!is_dir($to_path))
{
#I need to explode by both \\ AND / to find out
mkdir($to_path, 0777);
}

How do I parse it and MkDir the path?

Thanks,
John


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to