So I used php to create a csv file containing data I would like store in an existing content type (the php file is currently running locally/offline with WAMP).

In the csv file, each row represents a node and each column represents a field (including CCK fields).

Ideally I would like to run a script that programatically creates the nodes in Drupal with all the fields completed as indicated in the csv file.

How should I go about this?

Thanks for any pointers.

PS - Node creation is associated with various tasks including pathauto, so I need to reproduce all those events for each node created also.

Comments

Anonymous’s picture

Have you seen the node import module? http://drupal.org/project/node_import

WorldFallz’s picture

If it's something you plan on doing repeatedly, checkout the feeds module.