Get all products:
$products = Mage::getModel('catalog/product')->getCollection() ->addAttributeToSelect('sku') ->addAttributeToSelect('name'); foreach($products as $product){ echo 'Name:'.$product->name.' sky:'.$product->sku.'<br>'; }
You can add as many attributes as you want with addAttributeToSelect('attribute_name')
source share