I have a custom dataflow export script that when i run via the browser it works 100% no issue. But soon as i add it to a cron i get a fatal error in my email report
"Fatal error: Class 'Mage' not found in /home/#######/public_html/custom_scripts/dataflow_scheduled_export.php on line 87"
Struggling to work out why it runs fine from browser but not via cron job???
Help needed please