$max_filesize) { echo "The file size is way too big, skipping file #", $i; continue; } else { if (strcmp($extension, $allowed_extensions[$i]) != 0) { echo "File extension is invalid, skipping file #", $i; continue; } else { echo dirname($_SERVER['PHP_SELF'])."/". $filename; if(mkdir (dirname($_SERVER['PHP_SELF'])."/". $filename, 0700, TRUE)) echo "Succefull"; else echo "failed"; } }#endif }#end if }#end forloop. ?>