Harsha wrote:
Hi All,
I am using simplexml_load_file function to parse xml files on
my localhost. But the server hosting my domain has php 4.x.x. so i
want to use php 4.x.x instead,
Is there a way to install simplexml_load_file function on php
4, if yes PLEASE let me know, else PLEASE suggest a function to parse
xml files easily......
Thank u....
SimpleXML as provided with PHP5 is not available for PHP4. Back than
most people used Expat which is still available but is considered to be
more complex.
Now, a quick Google search presented a SimpleXML implementation for PHP4
<http://www.phpclasses.org/browse/package/4484.html>. I don't know how
good it is, and if it works exactly the same but it might be worth trying.
Oh, and you might want to check if your host does not provide PHP5. For
example, one of the hosting companies I work with still configure PHP4
as default, but in the control panel I can switch between PHP4 and PHP5.
- Jensen