Seems like this is some kind of cache problem. I tested it in 3 different browsers on my Ubuntu box, clearing the cache, nothing worked until I restarted my box. So I think somehow the cache got messed up.
Did anyone report strange things happening after the import with this script? Like anonymous visitors not being able to view new posts.
This code is written for PHP5. It works perfectly.
PHP4 users will need an extra piece of code, however, because the function file_put_contents does not come with PHP4.
So copy this piece of code and paste it on the bottom of the php file, but before the ?> tag
if (!function_exists('file_put_contents')) {
function file_put_contents($file, $contents = '', $method = 'a+') {
$file_handle = fopen($file, $method);
fwrite($file_handle, $contents);
fclose($file_handle);
return true;
}
}