Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Proactive Coding:
Prepare you XML for PHP5
Jul 05, 2004 @ 08:21:13

If you're thinking about starting a php4 project which will parse XML with PHP's DomXML extension, don't! DomXML has been replaced in with the DOM extension.

If you are in the middle of a project that uses DomXML, this script may ease your migration.

Migration from PHP4 to PHP5 is easy, but might be long if domxml was broadly used. Moreover, in order to have a smooth transition, it is good for scripts to be compatible with PHP5 as soon as possible, even if the server is still running PHP4. The optimisation for PHP5 can be done later.

I propose on this page a module (wrapper) to include in your PHP4/domxml scripts, for them to be compatible with PHP5/dom.

tagged:

Link:


Trending Topics: