How to get sold products details from order collection in magento 1?

Use the Below in your file.

<?php 
$orders = Mage::getModel('sales/order')->getCollection()
->addAttributeToFilter('created_at',array('from'=>$fromDate, 'to'=>$toDate));
$items = array();
foreach($orders as $order) {
    // Get Items from the order
    foreach($order->getAllItems() as $orderItem){
         $items[] = $orderItem->getData();

     }
}
echo "<pre>"; print_r($items); //outputs all products sold details