Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 813 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 813 Bytes

Catalyst

Description

The user_upload.php will accepts and processes the CSV file. The parsed file data will be inserted into a MySQL database.

csv file format (email is unique)

name surname email
John Smith [email protected]

How to use

usage: php user_upload.php [--file ] [--create_table] [--dry_run] [-u ] [-p] [-h ] [--help]

  • file name of the CSV to be parsed
  • create_table MySQL users table to be built
  • dry_run used with the --file directive, and run the script but not insert into the DB
  • u MySQL username
  • p MySQL password
  • h MySQL host
  • help output the above list of directives with details