This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

good design?

 
Ravee Bhat
Ranch Hand
Posts: 72
Eclipse IDE Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a php script which reads a XHTML document using the XML parser.
http://cgi-bin.spaceports.com/~ravee/galleria.php?Manali
Basically it parses the XML document depending on the request, to fetch certain text and display an image. viz. load the parser, parse document, close the parser. Everytime a request comes this routine is repeated.
Is this a good design? What I mean is, is it possible to load the parser once, and parse the XML document as and when the request comes?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic