I'm trying to use cron jobs to set some things up and don't have to do them everyday.
One example is the currency rate update, another is the search indexation, and a few modules/scripts i wrote myself.
I found that include('config/config.inc.php'); doesn't work for me from cli (and a cron job).
The script haults at this line, doesn't do anything, doesn't output an error, even after i turned display errors,...
I could use wget, but it's not quite the same and it creates file in root.
My only solution was to include('config/settings.inc.php'); and use PDO to access the database. Which is ok, but this way i can't use the built in functions/classes/...
I reported on the currency update in http://forge.prestashop.com/browse/PSCFV-8879. The answer being it was fixed. Maybe it is, i haven't updated from 1.5.2. But cron_currency_rates.php is the same. And refreshCUrrencies seems the same in 1.5.4.1
Am i the only one with these problems? Has anyone found a solution?
Hi,
I'm trying to use cron jobs to set some things up and don't have to do them everyday.
One example is the currency rate update, another is the search indexation, and a few modules/scripts i wrote myself.
I found that include('config/config.inc.php'); doesn't work for me from cli (and a cron job).
The script haults at this line, doesn't do anything, doesn't output an error, even after i turned display errors,...
I could use wget, but it's not quite the same and it creates file in root.
My only solution was to include('config/settings.inc.php'); and use PDO to access the database. Which is ok, but this way i can't use the built in functions/classes/...
I reported on the currency update in http://forge.prestashop.com/browse/PSCFV-8879. The answer being it was fixed. Maybe it is, i haven't updated from 1.5.2. But cron_currency_rates.php is the same. And refreshCUrrencies seems the same in 1.5.4.1
Am i the only one with these problems? Has anyone found a solution?
Thanks
Share this post
Link to post
Share on other sites