title: Programmatically add Magento products to categories
body: <p>I am using Magento 1.4.0.1.
  I have over 21000 simple products, each entered into a single category.
  There are hundreds of categories in my site.
  Some products belong in multiple categories.
  Is there some way for me to programmatically add products into multiple categories?</p>