This is a discussion on Another SimpleXMLElement question... within the PHP General forums, part of the PHP Programming Forums category; If at first you don't succeed... Our production environment is running on an old version of PHP 5.0 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
If at first you don't succeed...
Our production environment is running on an old version of PHP 5.0 and cannot be easily updated. My problem is that I have developed code against a new version and it has the SimpleXMLElement::addChild() function, but this is not present on the older version of PHP. Does anyone know how to work around this? Can I just treat the SimpleXMLElement object as an array and append as I see fit? regards, Mikey |
|
|||
|
Hello,
This is Simple XML extensions. The SimpleXML extension requires PHP 5!. For this reason you can only use other XML extensions such as XML parser.:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net "Mikey" <frak@upcore.net>, haber iletisinde sunlari yazdi:CD.C0.05767.85524064@pb1.pair.com... > If at first you don't succeed... > > Our production environment is running on an old version of PHP 5.0 and > cannot be easily updated. My problem is that I have developed code > against a new version and it has the SimpleXMLElement::addChild() > function, but this is not present on the older version of PHP. > Does anyone know how to work around this? Can I just treat the > SimpleXMLElement object as an array and append as I see fit? > > regards, > > Mikey |