"; flush(); $i = 0; while ($row = mysql_fetch_assoc($result)) { // Your script will probably pull this information from a database. $node->title = mb_convert_encoding ( html_entity_decode($row['short']), "UTF-8", "ISO-8859-1" ); #"My imported node"; $node->body = $row['text']; $node->teaser = substr(strip_tags($node->body),0,600); $node->type = 'story'; // Your specified content type $node->created = $row['created']; #time(); $node->changed = $node->created; $node->status = 1; $node->promote = 1; $node->sticky = 0; $node->format = 1; // Filtered HTML $node->uid = 1; // UID of content owner $node->language = 'de'; // If known, the taxonomy TID values can be added as an array. $node->taxonomy = array($row['tid']); node_save($node); $i++; # echo $node->title; unset($node); $node = new stdClass(); if ($i % 100 === 0) { echo $i . ".."; flush(); } } echo "

done"; ?>