0 votes
890 views
in Magento by
How can we run Magento Code Externally on another folder other than its default installation folder please?

1 Answer

0 votes
by

Simple as this.

<?php
require_once('app/Mage.php'); //Path to Magento
umask(0);
Mage::app();
// Run you code here
?>

Related questions

+2 votes
1 answer 565 views
+1 vote
1 answer 703 views
+1 vote
1 answer 5.4k views
asked Jan 31, 2018 in Magento by Edward121 (260 points)
0 votes
1 answer 11.6k views
+1 vote
1 answer 4.7k views
0 votes
1 answer 1.2k views
asked Feb 14, 2017 in Magento by Toms
...