title: Magento 1.9 - resave all products
body: <p>I need to re-save all products in magento. I found solution (for 1.7 version):</p>
  
  <pre><code>&lt;?php
  set_time_limit(0);
  
  // require magento core
  require_once 'app/Mage.php';
  
  // execute on admin store
  Mage::app()-&gt;setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
  
  $products = Mage::getModel('catalog/product')-&gt;getCollection();
  foreach($products as $product) {
      echo $product-&gt;getName() . '&lt;br/&gt;';
      // save the product
      $product-&gt;save();
  }
  
  echo 'DONE';
  ?&gt;
  </code></pre>
  
  <p>But this not working for magento 1.9.
  I need to re-save all configurable products, if it possible.</p>