Hi,
I have written a php routine which parses a xml file and put the data in the database. Right now the xml file name is hardcoded into the php script.
However now I need to automate that script so that the script goes into a certain folder looks for .xml files and then parses them one by one and does the database entry.
The script needs to be run every hour.
I am not sure how to accomplish this, i.e. pass file names to the existing php script for parsing the xml files.
Appreciate any help in this regards.
Thanks,
Tewari
I have written a php routine which parses a xml file and put the data in the database. Right now the xml file name is hardcoded into the php script.
However now I need to automate that script so that the script goes into a certain folder looks for .xml files and then parses them one by one and does the database entry.
The script needs to be run every hour.
I am not sure how to accomplish this, i.e. pass file names to the existing php script for parsing the xml files.
Appreciate any help in this regards.
Thanks,
Tewari