Hello people,
I am doing export of products with their attributes from oscommerce in csv. I want to save product attributes in array so they could be imported in another oscommerce site. Some products may have several attributes with many options for example size=>S,M,L,XL,XXL ; color=>red,black,green,blue,white,yellow,purple . In order to import the attributes correct i am saving their names instead of IDs because on remote site they may not exist so importer will attempt to insert them.
Problem is that such data is quite huge and i am thinking to serialize the array of attributes, their values, the price per value, stock of the attributes values combination etc. After serialization i did gzcompress() and saved the returned string in CSV file. However when i upload this file for import and gzuncompress() the attributes column it gives error Warning: gzuncompress() [function.gzuncompress]: data error in.....
Why it cannot restore the compressed data? If i gzuncompress() right after compression it works ok, but if saved in file then file read gzuncompress() does not work.
Serialize and gzencode in CSV
Moderator: General Moderators