I am working on a PHP project, and I use the XMLRender to add the URL's large XML file (> 240 MB). It needs to be parsed It works in the local host but does not work on shared hosting (bluostost), it shows a 404 error!
Does this action require a dedicated server? If so, please give me suggestions.
How can sharing XML files help?
XMLParser is a pull parser, so this does not load the whole file in memory as you would parsize it So, dividing the file will have no effect except to add complexity to your code. However, if you have all the details that you parsed in your script, then it will take a lot of memory.
However, you should get some error or message from running on your shared script, to identify what the problem of hosting is, whether their version of PHP was created with --enable-libxml Are you getting a memory allocation error?
Comments
Post a Comment