This is for both D5 and D6. APK comes with a node type export that has ~30 fields on it. It works fine for me but I have users now and then report that it times out without importing everything. I don't know what to tell them at that point. Do you know if there's anything that can be done? I imagine the difference is some setting in their LAMP that controls how long something can run. I'd like to give them better advice than "that's content copy's problem, I can't help you" if possible, especially now that I'm nearing a 1.0 release and will likely get more users that aren't Drupal experts.

If it helps, here is the code I use to pull in the content copy export:

D6:

function _create_content_type($cck_definition_file) {
  include_once('./'. drupal_get_path('module', 'node') .'/content_types.inc');
  include_once('./'. drupal_get_path('module', 'content') .'/includes/content.admin.inc');
  $values = array();
  $values['type_name'] = '<create>';
  $values['macro'] = file_get_contents($cck_definition_file);

  $form_state = array();
  $form_state['values'] = $values;
  drupal_execute("content_copy_import_form", $form_state);
  content_clear_type_cache();  
}

D5:

function _create_content_type($cck_definition_file) {
  include_once('./'. drupal_get_path('module', 'node') .'/content_types.inc');
  include_once('./'. drupal_get_path('module', 'content') .'/content_admin.inc');
  $values = array();
  $values['type_name'] = '<create>';
  $values['macro'] = file_get_contents($cck_definition_file);
  drupal_execute("content_copy_import_form", $values);
}

Thanks,

Michelle