Hi I have a minor issue importing 40 000 products using custom import script. Because it does take a lot of time to process and insert all the data, the script just dies half way.
Now I could use cron, but its no use because I can not get my script working without calling "init.php" witch then calls http headers witch results the script to die before it has been executed.
As far as I understand the problem is that init.php file calls store frontend. Is there any other way to include prestashop core functions without calling init.php file?
require($this->store_base_dir . 'config/config.inc.php');
include($this->store_base_dir . 'init.php');