In this example, the script first includes the Mage.php file, which contains the Mage class. The `Mage::init()` method then initializes the application, and the script can then access the various features of Magento. In this simple example, the script just outputs a message to the browser.
Example 2: Retrieving product informationload(1); echo $product->getName(); echo $product->getPrice();In this example, the script uses the `Mage::getModel()` method to retrieve an instance of the `catalog/product` model, which represents a product in Magento. It then loads a specific product with the ID "1", and outputs the name and price of the product. The package library used in these examples is the Magento Core library, which is the default library for Magento 1.x. This library contains all of the core Magento functionality, including models, controllers, helpers, and other classes that are necessary for running a Magento store.