pathname

From: Date: Mon, 18 Mar 2002 06:06:08 +0000
Subject: pathname
Groups: php.general 
Request: Send a blank email to php-general+get-88891@lists.php.net to get a copy of this message
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

« previous php.general (#88891) next »