I have no experience with PHP and haven't used perl or vb for quite some time now. I do have previous coding knowledge to some degree but have been out of practice for so long that easily understandable terms might be necessary.
I am developing a website and I require a specific function that is codable only in php. In this website appliances are sold. I am at the point that it asks what code is to be executed upon the completion of an order. I need the code to export (in .csv format) the sales report and the inventory report to either a local downloadable location on the webserver, or to my remote computer. The available variables are $order and $account. I am using drupal as the content editor and the code will be relayed through drupals modules. Any feedback is greatly appreciated.