Getting XML extensions to work

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

    Getting XML extensions to work

    I am running PHP v4.3.1 on Apache 1.3.27 on Mandrake 9.1 (kernal 2.4.21-
    0.13mdk) I tried running the phpSysInfo script ( http://phpsysinfo.sf.net/
    ) and gave me the error "Call to undefined function: xml_parser_crea te() "
    And that is supposed to be a function used by the XML extension. I checked
    my php info ( http://svr2.vrillusions.com/info.php ) and there is no XML
    secion. I checked the XML section of the manual (
    http://www.php.net/manual/en/ref.xml.php ) and said I needed to install
    expat. There was a precompiled RPM for mandrake so I got that installed,
    restarted apache and it still doesn't work. It seems like I would have to
    tell php somehow that I have XML now, but can't figure out how to do that.
    Any ideas? Thanks for any help.

    --
    VR
  • MeerKat

    #2
    Re: Getting XML extensions to work

    vrillusions wrote:
    [color=blue]
    > I am running PHP v4.3.1 on Apache 1.3.27 on Mandrake 9.1 (kernal 2.4.21-
    > 0.13mdk) I tried running the phpSysInfo script ( http://phpsysinfo.sf.net/
    > ) and gave me the error "Call to undefined function: xml_parser_crea te() "
    > And that is supposed to be a function used by the XML extension. I checked
    > my php info ( http://svr2.vrillusions.com/info.php ) and there is no XML[/color]
    ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^
    Don't do this for longer than is absolutely necessary. There's a fair
    bit of information exposed here which could help someone compromise the
    server (paths, installed software, etc). Save the output and remove the
    file, print it out, .htaccess it or something.

    ....can't answer your question though :)
    [color=blue]
    > secion. I checked the XML section of the manual (
    > http://www.php.net/manual/en/ref.xml.php ) and said I needed to install
    > expat. There was a precompiled RPM for mandrake so I got that installed,
    > restarted apache and it still doesn't work. It seems like I would have to
    > tell php somehow that I have XML now, but can't figure out how to do that.
    > Any ideas? Thanks for any help.
    >[/color]
    --
    MeerKat

    Comment

    • vrillusions

      #3
      Re: Getting XML extensions to work

      On 25 Aug 2003, MeerKat <liquidlaughter 2000@blueyonder .co.uk> wrote:
      [color=blue]
      > vrillusions wrote:
      >[color=green]
      >> I am running PHP v4.3.1 on Apache 1.3.27 on Mandrake 9.1 (kernal
      >> 2.4.21- 0.13mdk) I tried running the phpSysInfo script (
      >> http://phpsysinfo.sf.net/ ) and gave me the error "Call to undefined
      >> function: xml_parser_crea te() " And that is supposed to be a
      >> function used by the XML extension. I checked my php info (
      >> http://svr2.vrillusions.com/info.php ) and there is no XML[/color]
      > ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^
      > Don't do this for longer than is absolutely necessary. There's a fair
      > bit of information exposed here which could help someone compromise
      > the server (paths, installed software, etc). Save the output and
      > remove the file, print it out, .htaccess it or something.
      >
      > ...can't answer your question though :)
      >[color=green]
      >> secion. I checked the XML section of the manual (
      >> http://www.php.net/manual/en/ref.xml.php ) and said I needed to
      >> install expat. There was a precompiled RPM for mandrake so I got
      >> that installed, restarted apache and it still doesn't work. It seems
      >> like I would have to tell php somehow that I have XML now, but can't
      >> figure out how to do that. Any ideas? Thanks for any help.
      >>[/color][/color]

      yeah I know, I just made that before posting so if people had any
      questions that could be answered from that page, they could do it. Once
      I figure this out I'm removing that again (not like it's that hard to
      make the page anyway :) )

      --
      VR

      Comment

      • vrillusions

        #4
        Re: Getting XML extensions to work

        On 25 Aug 2003, Zurab Davitiani <agt@mindless.c om> wrote:
        [color=blue]
        > vrillusions wrote on Monday 25 August 2003 11:08:
        >[color=green]
        >> I am running PHP v4.3.1 on Apache 1.3.27 on Mandrake 9.1 (kernal
        >> 2.4.21- 0.13mdk) I tried running the phpSysInfo script (
        >> http://phpsysinfo.sf.net/ ) and gave me the error "Call to undefined
        >> function: xml_parser_crea te() "
        >> And that is supposed to be a function used by the XML extension. I
        >> checked my php info ( http://svr2.vrillusions.com/info.php ) and
        >> there is no XML
        >> secion. I checked the XML section of the manual (
        >> http://www.php.net/manual/en/ref.xml.php ) and said I needed to
        >> install expat. There was a precompiled RPM for mandrake so I got
        >> that installed, restarted apache and it still doesn't work. It seems
        >> like I would have to tell php somehow that I have XML now, but can't
        >> figure out how to do that. Any ideas? Thanks for any help.
        >>[/color]
        >
        > It may be that Mandrake RPM does not contain/install the xml extension
        > by default. Have you tried:
        > urpmi php-xml
        > I am not a Mandrake user/expert so I cannot confirm; but read what it
        > says in the 4th row (from top) of your phpinfo output.
        >[/color]

        @#$Q$@%@#$% I didn't get it to work before, but I just did an su, not su
        -l so I didn't get the extra paths that root gets, that was why I
        couldn't find it before. Did that and it works fine. Thanks

        --
        VR

        Comment

        • Patrice Lazareff

          #5
          Re: Getting XML extensions to work

          Regarding XML in general, bear in mind that PHP 5 will come with a totally
          new XML handling based on libxml2.

          I haven't looked too much into the PHP5 code so far, so I can't tell how big
          the difference will be, but that may be worth taking into account.

          Patrice
          --
          Posté avec Knode, le lecteur de niouzes de KDE

          Comment

          Working...