View Full Version : DOM functions

11-29-2006, 05:30 PM
Do the DOM functions (http://us2.php.net/dom) run using PHP 4? Or is it PHP 5 exclusive?

11-29-2006, 07:11 PM
It's PHP5 only.

11-30-2006, 12:57 AM
Both Marek and chump are still here, I'm quite pleased to see that!
Been awhile guys, been really busy.
Anyway, yeah as Marek said DOM itself is only available in php 5. There are work arounds for getting the php 4 to work with, best to first look in the XML DOM (http://us2.php.net/manual/en/ref.domxml.php) section to see some of the php 4 usages. Its a shame I needed to format my pc awhile ago, I had a great class that could convert many of the commonly used functions :(

11-30-2006, 02:26 AM
Thanks, guys. Too bad this isn;t bundled with PHP 4 by default...I'm stuck with PHP 4 for now...

Good to see you back on, Fou-Lu :) Let me know if you find that class :D