I need to use "simplexml_load_file", which doesn't exist in PHP4. I was wondering if there was a wrapper in PHP4 that does the equivalent? Does anyone know of one?
php4 has been end of lifed as of 31/12. it's time to upgrade.
the simplexml functions are all about objects. you can get the contents of any file (including xml) in php4 and then you could parse it yourself or through some of the built in functions like xml_parse_into_struct(). this gets it into a (set of) arrays. you could then create a simple object from the arrays if you needed the output in an object (but php4 support for objects is not great)
Haha, I completely agree with it being obsolete, unfortunately someone asked me to implement a script of mine (I made it for PHP 5) into many sites (over 30), all using different hosting, most of which or none using PHP 5. I simply don't want to go through the haggle with the sites hosters to get them to switch.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.