PHP5 XSL issue WinXP/Apache2

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

    PHP5 XSL issue WinXP/Apache2

    Dear Googlers

    I have installed PHP5 to run on WinXP against Apache 2.
    It works! ie. I have tested a few simple scripts and a basic xml
    document parse.

    I now want to try the XSL extension so I can transform xml docs.

    Having copied the php_xsl.dll to a directory where it can be found and
    done the uncommenting in php.ini, it still will not work. The script I
    use generates the following error on the php line

    ....
    $proc = new XSLTProcessor;
    ....


    Fatal error: Class 'XSLTProcessor' not found in >>the script file
    name<<.


    Any ideas for sorting this will be most welcome.

    Thank you in advance
    BB
  • Chung Leong

    #2
    Re: PHP5 XSL issue WinXP/Apache2


    "badbetty" <bch@genie.co.u k> wrote in message
    news:5d22dcdd.0 407210231.445f9 49a@posting.goo gle.com...[color=blue]
    > Dear Googlers
    >
    > I have installed PHP5 to run on WinXP against Apache 2.
    > It works! ie. I have tested a few simple scripts and a basic xml
    > document parse.
    >
    > I now want to try the XSL extension so I can transform xml docs.
    >
    > Having copied the php_xsl.dll to a directory where it can be found and
    > done the uncommenting in php.ini, it still will not work. The script I
    > use generates the following error on the php line
    >
    > ...
    > $proc = new XSLTProcessor;
    > ...
    >
    >
    > Fatal error: Class 'XSLTProcessor' not found in >>the script file
    > name<<.
    >
    >
    > Any ideas for sorting this will be most welcome.
    >
    > Thank you in advance
    > BB[/color]

    Works fine here. Are you sure your extension path is correct? Maybe you're
    not editing the correct php.ini? Do a print_r(get_dec lared_classes() ) and
    see if the class is available.


    Comment

    • badbetty

      #3
      Re: PHP5 XSL issue WinXP/Apache2

      "Chung Leong" <chernyshevsky@ hotmail.com> wrote in message news:<i-2dnUxR0dZ6nmLdR Vn-sA@comcast.com> ...[color=blue]
      > "badbetty" <bch@genie.co.u k> wrote in message
      > news:5d22dcdd.0 407210231.445f9 49a@posting.goo gle.com...[color=green]
      > > Dear Googlers
      > >
      > > I have installed PHP5 to run on WinXP against Apache 2.
      > > It works! ie. I have tested a few simple scripts and a basic xml
      > > document parse.
      > >
      > > I now want to try the XSL extension so I can transform xml docs.
      > >
      > > Having copied the php_xsl.dll to a directory where it can be found and
      > > done the uncommenting in php.ini, it still will not work. The script I
      > > use generates the following error on the php line
      > >
      > > ...
      > > $proc = new XSLTProcessor;
      > > ...
      > >
      > >
      > > Fatal error: Class 'XSLTProcessor' not found in >>the script file
      > > name<<.
      > >
      > >
      > > Any ideas for sorting this will be most welcome.
      > >
      > > Thank you in advance
      > > BB[/color]
      >
      > Works fine here. Are you sure your extension path is correct? Maybe you're
      > not editing the correct php.ini? Do a print_r(get_dec lared_classes() ) and
      > see if the class is available.[/color]

      Hi Chung - thanks for the response.

      Nothing doing I'm afraid - the class is not showing up.

      I unzipped php 5 to 'c:\php5'.
      Then copied 'php.ini-recommended' to 'windows\system 32' renaming it to
      'php.ini'.
      Changed the 'doc_root' to point to the 'htdocs' location.
      In the extensions part I removed the ';' to the 'extension =
      php_xsl.dll'.
      Then copied the actual 'php_xsl.dll' from the dir 'ext', to be with
      the others i.e. in 'c:/php5'.

      The extension dir setting was left as original i.e. './'
      (later tried setting it as 'c:/php5' and even 'c:/php5/').

      The 'load module' bit was added to the 'httpd.conf' file in Apache2 as
      'LoadModule php5_module c:/php5/php5apache2.dll '.
      The application/mime type setting was done as per instructions.

      That's it really. Still not working for some reason. Have I missed
      something obvious?

      As I said - php does run the simple test scripts I did (inc. a simple
      xml file parse). It just seems to be the extensions that will not
      load.

      Looking forward to some more ideas if any?!

      Thanks again.
      BB

      Comment

      • Chung Leong

        #4
        Re: PHP5 XSL issue WinXP/Apache2

        "badbetty" <bch@genie.co.u k> wrote in message
        news:5d22dcdd.0 407212356.7c3c0 00a@posting.goo gle.com...[color=blue]
        > Then copied 'php.ini-recommended' to 'windows\system 32' renaming it to
        > 'php.ini'.[/color]

        I suppose you've probably got this figure out by now. php.ini should be in
        C:\windows, not C:\windows\syst em32.


        Comment

        • badbetty

          #5
          Re: PHP5 XSL issue WinXP/Apache2

          "Chung Leong" <chernyshevsky@ hotmail.com> wrote in message news:<q86dna0gf cu9HZ_cRVn-uQ@comcast.com> ...[color=blue]
          > "badbetty" <bch@genie.co.u k> wrote in message
          > news:5d22dcdd.0 407212356.7c3c0 00a@posting.goo gle.com...[color=green]
          > > Then copied 'php.ini-recommended' to 'windows\system 32' renaming it to
          > > 'php.ini'.[/color]
          >
          > I suppose you've probably got this figure out by now. php.ini should be in
          > C:\windows, not C:\windows\syst em32.[/color]

          Many thanks for your help Chung. I can see the module and run the scripts etc.
          Thanks again.

          BB

          Comment

          Working...