You are here: domxml - parsing an xml file once per session rather than every time « PHP Programming Language « IT news, forums, messages
domxml - parsing an xml file once per session rather than every time

Posted by CptDondo on 12/06/06 16:37

I am working on an embedded system. The entire configuration for the
system is stored in an XML file, which is pretty long.

It takes about 3 seconds to open the file using domxml_open_file.

Breaking the file into smaller files is not possible; a single XML file
is a part of the design requirement.

Right now we're opening and freeing the file every time any data is
requested from the file, which is quite often. This means that the user
ends up waiting about 5 seconds total before the page is generated.

It would be nice if we could open the file once per session, and keep
the file open throughout the session, rereading only when the file on
disk changes.

Is this possible?

Thanks,

--Yan

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация