include xmlrpc ...

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

    include xmlrpc ...

    Hi, I've got --with-xmlrpc option in my php.ini and can see on my phpinfo
    page. Now, how do I include this in some code? So far I've been downloading
    xmlrpc into a folder and just calling it from there, but if it's already
    installed what do I change to get this version working?

    Currently, I am calling ... require("../xmlrpc/lib/xmlrpc.inc");

    I tried ... require("xmlrpc .inc"); ... but with no luck.

    Thanks




  • R. Rajesh Jeba Anbiah

    #2
    Re: include xmlrpc ...

    elyob wrote:[color=blue]
    > Hi, I've got --with-xmlrpc option in my php.ini and can see on my phpinfo
    > page. Now, how do I include this in some code? So far I've been downloading
    > xmlrpc into a folder and just calling it from there, but if it's already
    > installed what do I change to get this version working?
    >
    > Currently, I am calling ... require("../xmlrpc/lib/xmlrpc.inc");
    >
    > I tried ... require("xmlrpc .inc"); ... but with no luck.[/color]

    When you enable any extension, you just use it's functions; you
    don't need to include/require anything else.

    --
    <?php echo 'Just another PHP saint'; ?>
    Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

    Comment

    • elyob

      #3
      Re: include xmlrpc ...


      "R. Rajesh Jeba Anbiah" <ng4rrjanbiah@r ediffmail.com> wrote in message
      news:1149443964 .345550.313860@ y43g2000cwc.goo glegroups.com.. .
      [color=blue]
      > When you enable any extension, you just use it's functions; you
      > don't need to include/require anything else.
      >[/color]

      Thanks, that makes complete sense but it's still not working here ... the
      error I get is ..

      PHP Fatal error: Class 'xmlrpc_client' not found

      In the phpinfo() information I can see this ..

      xmlrpc
      core library version xmlrpc-epi v. 0.51
      php extension version 0.51
      author Dan Libby
      homepage http://xmlrpc-epi.sourceforge.net
      open sourced by Epinions.com


      So, had kind of hoped it would work.... but am now presuming that
      http://phpxmlrpc.sourceforge.net is different in the way that it works. I
      will have to make quite a few code changes, presumably.

      Here's the line that's not working ...

      $xmlrpc_client = new xmlrpc_client("/services/xmlrpc", "www.flickr.com ",
      80);

      Time to start looking at the differences ...




      Comment

      • R. Rajesh Jeba Anbiah

        #4
        Re: include xmlrpc ...

        elyob wrote:[color=blue]
        > "R. Rajesh Jeba Anbiah" <ng4rrjanbiah@r ediffmail.com> wrote in message
        > news:1149443964 .345550.313860@ y43g2000cwc.goo glegroups.com.. .
        >[color=green]
        > > When you enable any extension, you just use it's functions; you
        > > don't need to include/require anything else.
        > >[/color]
        >
        > Thanks, that makes complete sense but it's still not working here ... the
        > error I get is ..
        >
        > PHP Fatal error: Class 'xmlrpc_client' not found
        >
        > In the phpinfo() information I can see this ..
        >
        > xmlrpc
        > core library version xmlrpc-epi v. 0.51
        > php extension version 0.51
        > author Dan Libby
        > homepage http://xmlrpc-epi.sourceforge.net
        > open sourced by Epinions.com
        >
        >
        > So, had kind of hoped it would work.... but am now presuming that
        > http://phpxmlrpc.sourceforge.net is different in the way that it works. I
        > will have to make quite a few code changes, presumably.[/color]
        <snip>

        xmlrpc is a PHP extension <http://in2.php.net/xmlrpc> and that
        means the functions are available like any other PHP functions once you
        enable it. But, phpxmlrpc at sourceforge.net is another project that
        provides PHP classes but source available in PHP; IOW, it's a PHP code.

        You cannot expect the phpxmlrpc to work by enabling xmlrpc.

        --
        <?php echo 'Just another PHP saint'; ?>
        Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

        Comment

        • elyob

          #5
          Re: include xmlrpc ...


          "R. Rajesh Jeba Anbiah" <ng4rrjanbiah@r ediffmail.com> wrote in message
          news:1149483953 .010964.39520@j 55g2000cwa.goog legroups.com...[color=blue]
          > elyob wrote:[color=green]
          >> "R. Rajesh Jeba Anbiah" <ng4rrjanbiah@r ediffmail.com> wrote in message
          >> news:1149443964 .345550.313860@ y43g2000cwc.goo glegroups.com.. .
          >>[color=darkred]
          >> > When you enable any extension, you just use it's functions; you
          >> > don't need to include/require anything else.
          >> >[/color]
          >>
          >> Thanks, that makes complete sense but it's still not working here ... the
          >> error I get is ..
          >>
          >> PHP Fatal error: Class 'xmlrpc_client' not found
          >>
          >> In the phpinfo() information I can see this ..
          >>
          >> xmlrpc
          >> core library version xmlrpc-epi v. 0.51
          >> php extension version 0.51
          >> author Dan Libby
          >> homepage http://xmlrpc-epi.sourceforge.net
          >> open sourced by Epinions.com
          >>
          >>
          >> So, had kind of hoped it would work.... but am now presuming that
          >> http://phpxmlrpc.sourceforge.net is different in the way that it works. I
          >> will have to make quite a few code changes, presumably.[/color]
          > <snip>
          >
          > xmlrpc is a PHP extension <http://in2.php.net/xmlrpc> and that
          > means the functions are available like any other PHP functions once you
          > enable it. But, phpxmlrpc at sourceforge.net is another project that
          > provides PHP classes but source available in PHP; IOW, it's a PHP code.
          >
          > You cannot expect the phpxmlrpc to work by enabling xmlrpc.[/color]

          Yeah, figured that out when I was writing my reply. I think my mistake in my
          mind was that I stuck phpxmlrpc in a folder called xmlrpc. So, when I was
          fiddling about with my server I suddenly thought "why have two copies", but
          couldn't get it to work. In my excitement, I didn't put it together that
          they are two completely different things. I'll just stick with phpxmlrc for
          the moment!

          Thanks again


          Comment

          Working...