> /home/scores/batch/shared/sources/log/getInpiDecisions.log * 00 19 * * * /home/scores/batch/getInpiDecisions.php >> /home/scores/batch/shared/sources/log/getInpiDecisionsSoir.log */ // --- Define path to application directory defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(__DIR__ . '/../application')); // --- Define application environment defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production')); // --- Composer autoload require_once realpath(__DIR__ . '/../vendor/autoload.php'); // --- Create application, bootstrap, and run $application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini'); require_once APPLICATION_PATH.'/configs/config.php'; $c = new Zend_Config($application->getOptions()); Zend_Registry::set('config', $c); $db = Zend_Db::factory($c->profil->db->metier); Zend_Db_Table::setDefaultAdapter($db); // Database $config = new \Doctrine\DBAL\Configuration(); $connectionParams = array( 'dbname' => $c->profil->db->metier->params->dbname, 'user' => $c->profil->db->metier->params->username, 'password' => $c->profil->db->metier->params->password, 'host' => $c->profil->db->metier->params->host, 'charset' => 'utf8', 'driver' => 'pdo_mysql', ); try { $conn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config); Zend_Registry::set('doctrine', $conn); } catch (\Doctrine\DBAL\DBALException $e) { echo "Connection Database impossible.\n"; exit; } $table='jo.annonces'; function wsLog($service, $siret='', $ref='') { } define('RNCS_IMR_FTP_HOST', '194.5.119.252'); define('RNCS_IMR_FTP_LOGIN', 'score'); define('RNCS_IMR_FTP_PASS', '1eUauTJZ'); define('RNCS_IMR_FTP_DIR', '/var/home_ftp/score/Send/'); define('RNCS_IMR_FTP_LOCALDIR', '/home/scores/batch/shared/sources/rncs/extelia/'); define('RNCS_IMR_BACKUP_DIR', '/home/scores/batch/shared/sources/rncs/imr/'); $strInfoScript='Usage : '.basename($argv[0]). "