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

1 Answer

0 votes
answered 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 513 views
+1 vote
1 answer 645 views
+1 vote
1 answer 2.2k views
0 votes
1 answer 6.3k views
+1 vote
1 answer 3.3k views
0 votes
1 answer 1.1k views
asked Feb 13, 2017 in Magento by Toms
...