When creating nodes programmatically it's easy enough to give the node a
title, body, and type by using the following:
$node = new stdClass();
$node->title = 'title';
$node->body = 'body text';
$node->type = 'type';
These are simple properties that ALL nodes will have. What about nodes with CCK fields attached to them? Well for text fields we can simply use the following:
$node = new stdClass();
$node->title = 'title';
$node->body = 'body text';
$node->type = 'type';
$node->$field_name[0]['value'] = 'TEXT'
Where $field_name can take place of the internal CCK field name (field_XXX_XXX)
That covers the text fields but what about images? Here's a little background on the situation that was put infront of me. I had images on a different server which I needed to attach to an image field on one of our content types. So I used a combination of cURL and a CCK function in order to attach the images to the nodes.