I need a php script to read all the txt files in a directory and populate a MySQL database with the information below for each Text File:
1) Field 1: 1st line of the text file.
2) Field 2: 1st line of the text file content between tags (eg 1st Line) and the rest of the text file content.
3) Field 3: Sequential number (coming from highest number in database).
4) Filed 4: A random number between 1 and 100.
5) Field 5: A defined number in another field (data input).
The script should enter text file data into an ArticleSetup MySQL Database (standard).
Expected Time to deliver: 2 days. Please provide estimated time to deliver if different.