rendered paste body<?phprequire_once "includes/bootstrap.inc";drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); // makes ur script an offical Drupal script$list = file('list.txt');$node = new stdClass();foreach ($list as $line_num => $line) { list($title, $year, $imdb, $vformat) = split(";", $line, 4); $node->type = 'content_movie'; $node->uid = '1'; $node->title = $title; $node->field_format_value = $vformat; $node->field_format_0_value = 'DVD'; $node->field_year = $year; $node->field_imdb = $imdb; //Make sure the data is ok and save him node_validate($node); if (!form_get_errors()) { $node = node_submit($node); node_save($node); return $node->nid; echo "thats one!"; $sql = db_query("SELECT nid, vid FROM `node` WHERE title = '.$title.'"); $nid = $sql['nid']; $vid = $sql['vid']; db_query(INSERT INTO `node_content_movie` ( `vid`, `nid`, `field_format_value`, `field_format_0_value`, `field_year_value`, `field_imdb_value` ) VALUES ( ".$vid.", ".$nid.", 'Widescreen', 'DVD', '".$year."', '".$imdb."') ; } else { return false; } }?>