Skip to content

Instantly share code, notes, and snippets.

@redteam-snippets
Created October 15, 2012 18:43
Show Gist options
  • Save redteam-snippets/3894284 to your computer and use it in GitHub Desktop.
Save redteam-snippets/3894284 to your computer and use it in GitHub Desktop.
Magento DB Connection
<?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