You are here: Re: PHP to dynamically generate XML « PHP Programming Language « IT news, forums, messages
Re: PHP to dynamically generate XML

Posted by Tim Van Wassenhove on 10/25/82 11:20

On 2005-07-04, petermichaux@yahoo.com <petermichaux@yahoo.com> wrote:

> I am interested in critisim of how I implemented each method. However
> my main problem is deciding between methods. Which method is better for
> bigger programs where the bits of the XML data are assembled by various
> php functions that I write?

Untill now i've liked the DOM(XML) extension more.. But i should make
some time to compare them against string manipulation...

> For example, one php function queries a database table for a list of CD
> titles. A second php function loops through this CD title list and gets
> the track listing for each CD from another table in the database.

I think that in this case you're better off with a JOIN in your query
and that resultset to your xml document.


In the situation where you would add 2 unrelated sorts of data, your
approach seems faisable... For example, a node with articles (main content)..
And another node with messages (for a shoutbox as a gimmick)



--
Met vriendelijke groeten,
Tim Van Wassenhove <http://timvw.madoka.be>

 

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

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