Created
October 15, 2012 18:43
-
-
Save redteam-snippets/3894284 to your computer and use it in GitHub Desktop.
Magento DB Connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Magento DB connection | |
include("/path/to/app/Mage.php"); | |
$app = Mage::app('default'); | |
$db = Mage::getSingleton('core/resource')->getConnection('core_read'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment