Another SimpleXMLElement question...

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-23-2007
Mikey
 
Posts: n/a
Default Another SimpleXMLElement question...

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
Reply With Quote
  #2 (permalink)  
Old 03-24-2007
Haydar TUNA
 
Posts: n/a
Default Re: Another SimpleXMLElement question...

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:38 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0