domxml_load_mem()/_file()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is there a hard limit to the size of the file you can load into the DOM
using either of the above functions?  I ask because I have a 5mb XML
file I'm trying to load and both functions die when used.  I've whittled
the size down to about 1.5mb and both functions then work.  It's not
as if it's dying because the structure of the XML is invalid, since I am
not altering the structure as I whittle it down.  When my script runs, I
can't check for any possible errors because the script dies *at*/*in* the
load function.  
The nearest I can tell is that it's dieing because of memory issues.
That for some reason, the size is too large for PHP to load into the
DOM.  When I load the file into XMLSpy, that applications mem usage
in task manager (WinXP) is showing as 150k and my system bogs
down alot.  But even so, XMLSpy is loading it.  The server that I am
running my script on (only to die) is Windows 2003 running Apache
2 and has 1GB of RAM.  And though I'll grant you that the server is
also running the likes of IIS, SQL Server and a few other intensive
applications, 1GB should be more than enough.
So I'm wondering if there might be some other reason, apart from the
memory, that such a large XML document would cause both of the
above named functions to cause the script to halt/crash.
 
thnx,
Chris

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux