Hi, I need a PHP script that will take a CSV or Text file and convert it into an XML file. The CSV files contain information about products and each product has several different types of information such as the name, description and price. So this information just needs to be converted into XML and kept exactly the same.
The script needs to be ran from a cron job as I need it to run every day and it also needs to be able to handle lots of CSV files, so in the script I enter all of the CSV files that I want converting and the script converts them with one separate XML file for every CSV file converted and the XML files should have the same name as the CSV file. The CSV files will also be in the same directory as the script with the XML files needing to be generated in the same folder.
I would also like the script to remove certian characters from the text in the CSV file as they can cause errors. For example if the CSV file uses an ' to separate the data and some of the text includes an ' character in the text this can cause problems so this will have to be fixed.
So thanks for reading my bid and let me know if you need any more information, this is a repost because the previous coder decided to quit and so please only bid if you intend to complete the project. Thanks,
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).