1. <?php
  2. /**
  3. * Configuration settings for batch processing.
  4. */
  5. // Define the directory to store input files.
  6. define('INPUT_DIR', '/path/to/input/files');
  7. // Define the directory to store output files.
  8. define('OUTPUT_DIR', '/path/to/output/files');
  9. // Define the maximum number of files to process in a single batch.
  10. define('BATCH_SIZE', 100);
  11. // Define the file extension(s) to process. Use an array for multiple extensions.
  12. define('FILE_EXTENSIONS', ['csv', 'txt']);
  13. // Define the delimiter used in the input files (e.g., comma, tab).
  14. define('DELIMITER', ',');
  15. // Define the encoding of the input files.
  16. define('ENCODING', 'UTF-8');
  17. // Define whether to overwrite existing output files.
  18. define('OVERWRITE_OUTPUT', true);
  19. // Define the log file path.
  20. define('LOG_FILE', '/path/to/processing.log');
  21. // Define the maximum processing time in seconds per batch.
  22. define('MAX_PROCESSING_TIME', 60);
  23. // Define the database connection details (if needed).
  24. define('DB_HOST', 'localhost');
  25. define('DB_USER', 'your_db_user');
  26. define('DB_PASS', 'your_db_password');
  27. define('DB_NAME', 'your_db_name');
  28. // Define a flag to enable/disable verbose logging.
  29. define('VERBOSE_LOGGING', true);
  30. // Define the path to a configuration file for advanced settings (optional).
  31. define('ADVANCED_CONFIG_FILE', '/path/to/advanced_config.ini');
  32. ?>

Add your comment