Quote:
Originally Posted by smooch101
Does anyone know a simple php flatfile or xml shopping cart script 
Just so i could have a shop, i would also like to integrate it into a paypal.com.au script to pass that information to paypal
etc description price shipping
|
XML is a form of Flat file....
Please say it is not but it is you have one file with all data in what the difference is is XML has functions so you not reading the file until you find you answer php can just get if from its pre_built functions.
E.G:
[test.ini]
PHP Code:
[cat]
var=value
To read this you have to read untill you find your var=(.*?)
Then you can stop
[test.xml]
PHP Code:
<XML HEADER>
<cat>
<var>Value</var>
</cat>
This you can ask php to get child node var from cat and it will return with the value but i think you always best with a DB engine like a form of SQL E.G MySQL as this has a system that can fetch it, i think there are some engines changing XML to work like SQL with programs