oh_prestashop Posted May 13, 2015 Share Posted May 13, 2015 Hello, I would like to create a single PHP file including just an SQL statement which needs to be executed regularly for maintenance purposes. The PHP file will then be called via CRON job. How can I do this? Thank you very much in advance. Link to comment Share on other sites More sharing options...
tuk66 Posted May 13, 2015 Share Posted May 13, 2015 Load PrestaShop config first include(dirname(__FILE__).'/../config/config.inc.php'); and then you can create and execute an SQL query. Link to comment Share on other sites More sharing options...
PascalVG Posted May 13, 2015 Share Posted May 13, 2015 Here some examples: https://www.prestashop.com/forums/topic/248621-solvedopen-and-close-store-at-set-times-each-day/?do=findComment&comment=1351867 Success! pascal. Link to comment Share on other sites More sharing options...
oh_prestashop Posted May 21, 2015 Author Share Posted May 21, 2015 ...works just fine! Thanks @pascalVG Link to comment Share on other sites More sharing options...
PascalVG Posted May 22, 2015 Share Posted May 22, 2015 Perfect. I'll mark it as solved. Happy selling, pascal. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now