Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP4 SimpleXML_load_file wrapper?

Status
Not open for further replies.

PhoenixD

Programmer
Aug 19, 2007
21
US
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?

Thanks,
Kerry
 
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.

Ok, thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top