I am responsible for creating a solution for a programmatic import of a csv into MySQL. I'm going to use fgetcsv for this. The csv will be sent to my server via FTP on a schedule, where I would need to cron a script to pull it into the database.
2 questions:
Will I need to run this script in the context of the root user account to pull the file from the FTP inbound directory, parse it, rename it, and move it to another directory (archive) or can I just use the same account I use for the MySQL db?
Does anyone have any code sample they might care to share with me?
2 questions:
Will I need to run this script in the context of the root user account to pull the file from the FTP inbound directory, parse it, rename it, and move it to another directory (archive) or can I just use the same account I use for the MySQL db?
Does anyone have any code sample they might care to share with me?