<?php
/**
* Configuration settings for batch processing.
*/
// Define the directory to store input files.
define('INPUT_DIR', '/path/to/input/files');
// Define the directory to store output files.
define('OUTPUT_DIR', '/path/to/output/files');
// Define the maximum number of files to process in a single batch.
define('BATCH_SIZE', 100);
// Define the file extension(s) to process. Use an array for multiple extensions.
define('FILE_EXTENSIONS', ['csv', 'txt']);
// Define the delimiter used in the input files (e.g., comma, tab).
define('DELIMITER', ',');
// Define the encoding of the input files.
define('ENCODING', 'UTF-8');
// Define whether to overwrite existing output files.
define('OVERWRITE_OUTPUT', true);
// Define the log file path.
define('LOG_FILE', '/path/to/processing.log');
// Define the maximum processing time in seconds per batch.
define('MAX_PROCESSING_TIME', 60);
// Define the database connection details (if needed).
define('DB_HOST', 'localhost');
define('DB_USER', 'your_db_user');
define('DB_PASS', 'your_db_password');
define('DB_NAME', 'your_db_name');
// Define a flag to enable/disable verbose logging.
define('VERBOSE_LOGGING', true);
// Define the path to a configuration file for advanced settings (optional).
define('ADVANCED_CONFIG_FILE', '/path/to/advanced_config.ini');
?>
Add your comment