Original Link: https://gist.github.com/freekrai/5248135
This has been heavily asked for, so here is the code to migrate second crack files to wordpress..
1) Create a folder called “migrate”, and upload this file to that folder.
2) Upload the PHPMarkdownExtra and PHP Smartypants libraries to this folder as well.
3) Move the posts folder from your second crack site into this folder.
4) In your browser, run: http://mysite/migrate/migrate.php and let it run.
This will move all posts in your posts folder into wordpress, it doesn’t touch pages, only posts.