Jump to content


This topic is now archived and is closed to further replies.


creating 1000 folders

Recommended Posts

you could just do...

for ($i=1;$i <= 1000;$i++) {

Of course that's just something simple.  Probably want to make sure the directory you're writing to has read/write perms.  Just look up mkdir() function in the manual and that should get you on the right path.  Oh yeah, it'll probably time out so you'll probably want to set your max_execution_time() in your php.ini file to something higher than 30 seconds.

Share this post

Link to post
Share on other sites
Use the PHP mkdir command, see [url=http://nl3.php.net/manual/en/function.mkdir.php]http://nl3.php.net/manual/en/function.mkdir.php[/url]

[quote]bool mkdir ( string pathname [, int mode [, bool recursive [, resource context]]] )

Attempts to create the directory specified by pathname.

Ronald  8)

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.