I'm in need of a simple php script that can be implemented in various open-source, ecommerce shopping carts (osCommerce, Joomla/Virtuemart). It needs to perform the following functions: - Able to be executed daily via a cronjob - Access the store database export all the orders for that day. - Write the orders to a .csv file (based on a blank csv template) - Include the date in the filename - Save the file in a specified directory - Email the file as an attachment to a list of emails Anyone know of a script, plugin, etc that can do this?