I'm trying to use the following code in a large XML file (about 50 MB) in PHP:
// XML source $ xml = load new DOMDocument; $ Xml- & gt; Load ($ dir '.xml / vapProducts.xml'); $ Xsl = new DOMDocument; $ Xsl- & gt; Load ($ dir. 'All_products.xsl'); // Transformers $ proc = Configure new XSLTProcessor; $ Proc- & gt; ImportStyleSheet ($ XSL); // xsl rules $ resultTxt = $ proc- & gt; Attach the TransformOXML ($ xml);
This works fine on my local Dev machine, but when I upload it to my hosting provider it gets out of memory error.
Is there any way to enhance the entire xml file instead of loading it in memory rather than making it more efficient or transformable?
Thanks,
John
Comments
Post a Comment