run.php 532 B

1234567891011121314151617181920212223
  1. <?php
  2. define('BASE_ROOT_PATH',str_replace('\\','/',dirname(__FILE__)));
  3. require_once (BASE_ROOT_PATH . '/fooder.php');
  4. $gfcgi_run = 2;
  5. if($gfcgi_run == 0) { //模拟请求
  6. $file = BASE_ROOT_PATH . '/debug_run.php';
  7. include $file;
  8. } elseif ($gfcgi_run == 1) {
  9. $file = BASE_ROOT_PATH . '/research_run.php';
  10. include $file;
  11. } else {
  12. define('StartTime', microtime(true));
  13. define('TIMESTAMP', time());
  14. Base::run_test();
  15. $file = BASE_CRONTAB_PATH . '/crawl/fetch_goods.php';
  16. include $file;
  17. }
  18. ?>