simplexml_load_file in php 4.x.x

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Harsha

    simplexml_load_file in php 4.x.x

    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....
  • Jensen Somers

    #2
    Re: simplexml_load_ file in php 4.x.x

    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

    Comment

    • Michael Fesser

      #3
      Re: simplexml_load_ file in php 4.x.x

      ..oO(Harsha)
      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,
      You should _really_ consider an upgrade or to change the host. PHP 4
      has already reached its end of lifetime and all support for it will be
      stopped in about 3 weeks.

      Micha

      Comment

      Working...