I have a script that generates xml of products on users webstores. Now, this xml needs to be read from the browser into mysql database using php. The issue is that, sometimes the size of the xml is such large in (MegaBytes) that
-
it does not print on the user’s site even though it is constructed
-
does not get passed due to its weight and server time outs with the browser.
I learned these remedies may help.
- Increasing the CPU of the machine i use to access and parse the xml
- Increasing the cache of the the browser
I have done all these but still cannot get it effective. Any other solutions out there?
I suggest not to use XML to transfer large amounts of data from one server to another. Try this link about mysqldump.
If you must use XML to exchange the data, consider compressing it to reduce the XML-dump’s size.
You could also try not to transfer the whole product list at ones, but in chunks of maybe 100 products.
Can you explain how a browser is related to this problem? Do you call the XML-generating script in your browser by hand and then send the XML to a second server?