Skip to content

Instantly share code, notes, and snippets.

View weblance2's full-sized avatar

Jeff Williams weblance2

View GitHub Profile
<?
error_reporting(E_ALL);
ini_set('display_errors', '1');
// Load Up Magento Core
define('MAGENTO', realpath('/path/to/magento'));
require_once(MAGENTO . '/app/Mage.php');
$app = Mage::app();
<?php
try {
error_reporting(E_ALL);
ini_set('display_errors', '1');
// Load Up Magento Core
define('MAGENTO', realpath('/path/to/magento'));
require_once(MAGENTO . 'app/Mage.php');