Below are some great useful code snippets for the Magento Platform. We will eventually to add more as we go but for now please use and test these as needed. Run Magento Externally <?php require_once('app/Mage.php'); //Path to Magento umask(0); Mage::app(); // Run you code here ?> Reindex or Clear Cache <?php // clear cache Mage::app()->removeCache('catalog_rules_dirty'); ...