Created
April 25, 2014 18:13
-
-
Save greenwellness/11298419 to your computer and use it in GitHub Desktop.
Mage standalone scripts
This file contains hidden or 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 | |
| define('PATH_TO_MAGENTO', '/var/www/magento'); // update accordingly | |
| require_once PATH_TO_MAGENTO.'/app/Mage.php'; | |
| Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); | |
| // your php code here | |
| ?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment