$dir = Mage::getBaseDir(‘var’) ; unlink($dir.’/log/exception.log’); unlink($dir.’/log/system.log’); be careful, you can also delete other files :p
Continue reading [Magento]Delete Log Files Programatically
Comments closedIndonesian Magento Developer
$dir = Mage::getBaseDir(‘var’) ; unlink($dir.’/log/exception.log’); unlink($dir.’/log/system.log’); be careful, you can also delete other files :p
Continue reading [Magento]Delete Log Files Programatically
Comments closedhere example to load sales order data externally in magento 2, for example you’re going to use this url http://yourmagento2url/test.php <?php use Magento\Framework\App\Bootstrap; require __DIR__…
Continue reading [Magento 2] Run PHP code externally
Comments closed