My program is generating a long text file line by line. After it has finished the text file is saved to the disk.
For a new option I need to get the content of the text file into a table of MySQL database.
SQL command would be something like:
INSERT INTO parameter (mac_address, conf_parameter) VALUES ("."'".$mac_address."', '".$conf."')
I am looking for the $conf variable. How do I get the content of the text file in this variable?
Or is there a different way to get it into my DB?
Thanks a lot