Creating a drupal node programatically varies upon the setting of your drupal installation. Here is the basic way of creating a node via a script in Drupal 6.
$node = (object) NULL; $node->type = '$NODE_TYPE'; // your node type $node->uid = '1'; // ID of the user $node->created=time(); // current time $node->body = $TEXT; // CONTENT $node->title = $TITLE; // Title of the node $node = node_submit($node); node_save($node);
Now lets define each line one by one
