by
646 12
0
3
38k
1
Top 1% !
Pearl of Wisdom
Specified
Popularity: 105107th place

Published on:

No tags for this snippet yet.
LanguagePHP
SourceGitHub

Retrieve Magento Database Configuration

Retrieve Magento Database Configuration: 
magento-database-config.php
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1154949/Retrieve-Magento-Database-Configuration?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
<?php require_once ("../app/Mage.php"); $app = Mage::app('default'); $config = Mage::getConfig()->getResourceConnectionConfig("default_setup"); $dbinfo = array( "host" => $config->host, "user" => $config->username, "pass" => $config->password, "dbname" => $config->dbname );
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus