This project started from the Foodcoops need to download the price list directly from producers who have an e-commerce site, and due to time constraints can not handle it directly E-circles.
Also there are various of Foodcoops management software and would benefit from a quick and automated system of sharing between these lists.
From here came the idea, as it seems that there is, to create a standard format that can describe any type of list prices, providing all types of products that can serve all those organizations that have the need to transfer lists for electronically.
It is also active on our forum a topic where we can discuss this project.
It was thus produced 0.01 version of this standard in xml format.
Producers who want to participate in this project should put on their pricelist.php a file server that makes a query to the database, processes the list, transforming it into an xml file and forwards output.
Assuming that the price list is saved in $filename (full path of the file) and $fileN (filename), for forwarding you can use the following PHP code:
header("Content-Type: text/plain; name=$filename");
header("Content-Disposition: attachment; filename=$fileN");
header("Cache-Control: no-cache, must-revalidate");