RE: [PHP] mkdir() only makes one folder level deep.

From: Date: Fri, 23 Aug 2002 00:44:56 +0000
Subject: RE: [PHP] mkdir() only makes one folder level deep.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113699@lists.php.net to get a copy of this message
> I have read that mkdir() (ON WINDOWS) will only make ONE > file directory level deep at a time. > > So if you need two directories, one inside another, you can > NOT specify this in one line like... > mkdir(/top/middle/bottom,0700); > > Is this true? > If so, what is the work around??? Shane It seems to me that this is something that you can test pretty easily for yourself. Create a small php test script that tries to create a directory and see what happens. If you actually do this you'll learn more than if someone provides you with an answer. In the end, you'll find yourself a much better programmer if you learn how to answer your own questions most of the time - particularly if you learn how to test things to see how they work. In all honesty, the only way I could answer this question would be to try it for myself - since you can do that for yourself why should I? CYA, Dave

« previous php.general (#113699) next »