wolfdogg
09-29-2008, 03:25 PM
i would like to parse a file from a java program and insert it into a remote mysql db using php with an automatic daily check.
the idea is;
each java program (situated at various locations) takes in user info(data entry) daily when its used and will be re-configured to copy this info into a new file for a php program to retrieve a daily update to a php/mysql db with the info thats on this file.
the objective is to consolidate all the info on the seperate java based programs into one database, so that when a person is using the java based program, they will have an aid to pull up a browser and do a search on this php/mysql database to look up the entries from all the other remote java program users.
i want to program the php app to connect to all the registered java apps out there and see if theres a new file for the day, and if so, then parse it and insert it into the mysql db.
-is there a good module for parsing java into php already out there?
-should i just use a file-open function and get-contents this way?
-what file type should i have the java program save as (the java programmer suggested ascii text file, as this is the easiest for him)?
(i would like to avoid xml as the intermediary)
-the data will be sensitive
the idea is;
each java program (situated at various locations) takes in user info(data entry) daily when its used and will be re-configured to copy this info into a new file for a php program to retrieve a daily update to a php/mysql db with the info thats on this file.
the objective is to consolidate all the info on the seperate java based programs into one database, so that when a person is using the java based program, they will have an aid to pull up a browser and do a search on this php/mysql database to look up the entries from all the other remote java program users.
i want to program the php app to connect to all the registered java apps out there and see if theres a new file for the day, and if so, then parse it and insert it into the mysql db.
-is there a good module for parsing java into php already out there?
-should i just use a file-open function and get-contents this way?
-what file type should i have the java program save as (the java programmer suggested ascii text file, as this is the easiest for him)?
(i would like to avoid xml as the intermediary)
-the data will be sensitive