Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. <?php
  2. require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
  3. $configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', true);
  4. sfContext::createInstance($configuration);
  5.  
  6. // Disable execution limits on batch scripts
  7. ini_set('memory_limit', -1);
  8. ini_set('max_execution_time', 0);
  9. set_time_limit(0);
  10.  
  11. $year = '2010';
  12. $month = '09';
  13.  
  14. $file_prefix = $year."-".$month."-data-";
  15.  
  16. $data_path = dirname(__FILE__).'/../data/data_files/import/'.$year.'/'.$month.'/'.$file_prefix;
  17.  
  18. // start database connection
  19. $databaseManager = new sfDatabaseManager($configuration);
  20. $databaseManager->loadConfiguration();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement