usr bin php php rootpath home akira Projects pict dev logs 2008 for 12

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#!/usr/bin/php
<?php
$rootpath = '/home/akira/Projects/pict.dev/logs/2008/';
for($m=1;$m<=12;$m++) {
for($d=1;$d<=31;$d++) {
for($h=0;$h<=24;$h++) {
@mkdir($rootpath."$m/$d/$h",0777,1);
}
}
}
exec("chmod -R 0777 $rootpath");
?>