質問 > その他 > About batch, cron in ec-cube |
その他
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
duyanh419 |
投稿日時: 2012/8/10 10:22
対応状況: 開発中
|
半人前 登録日: 2012/6/25 居住地: 投稿: 30 |
About batch, cron in ec-cube I want to use batch,cron in ec-cube 2.12.1.Do the ec-cube have function batch?
Thanks! |
nakamtest1 |
投稿日時: 2012/8/10 15:55
対応状況: −−−
|
常連 登録日: 2012/8/7 居住地: 投稿: 33 |
Re: About batch, cron in ec-cube Yes, you can use it.
data/class/batch |
duyanh419 |
投稿日時: 2012/8/10 16:58
対応状況: −−−
|
半人前 登録日: 2012/6/25 居住地: 投稿: 30 |
Re: About batch, cron in ec-cube Thanks! I create file batch.php in www\eccube\html\batch call class in Data/class/batch.
I use command : php batch.php it work But in browser I use link http://localhost/ec-cube/html/batch/batch.php it also work How do I not allow use browse excute file.php, but use in command. |
nakamtest1 |
投稿日時: 2012/8/10 17:09
対応状況: −−−
|
常連 登録日: 2012/8/7 居住地: 投稿: 33 |
Re: About batch, cron in ec-cube you can use php batch.php in data/class/batch.
In html dir, you can open file to the world! |
duyanh419 |
投稿日時: 2012/8/13 12:59
対応状況: −−−
|
半人前 登録日: 2012/6/25 居住地: 投稿: 30 |
Re: About batch, cron in ec-cube Thanks you! i use batch in \data\class\batch in but it error when i type command:
Warning: require_once(CLASS_REALDIRSC_Bacth_Ranking_Products.php) [function.require-once]: failed to open stream: No such file or directory in D:\wamp3\www\ec-cube\data\class\batch\ranking_batch.php on line 27. My code: <?php require_once CLASS_REALDIR . 'SC_Bacth_Ranking_Products.php'; $objbacth= new SC_Bacth_Ranking_Products(); $objbacth->function_test(); ?> function_test() in class SC_Bacth_Ranking_Products(). <?php class SC_Bacth_Ranking_Products extends SC_Batch { function function_test() { echo 'batch'; } ?> |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |