Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8651539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:05:50+00:00 2026-06-12T14:05:50+00:00

I am trying to run the PEAR XMLRPC inside a plugin function to do

  • 0

I am trying to run the PEAR XMLRPC inside a plugin function to do some validation. It is all working fine in a standalone app that in a folder on my server, but as soon as I put all the files into my plugin folder, the:

require_once 'XML/RPC2/Client.php';

doesn’t work. The Client.php file return an error:

Warning:  require_once(XML/RPC2/Exception.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream:

So i assume it has to do with relative vs non-relative files, but I can’t seem to figure out why it works outside of wordpress just fine.

If I start changing all the

require_once 'XML/RPC2...

to be the absolute path on the server the errors start going away, but I feel like I shouldn’t have to change the source of PEAR and XMLRPC to do what i need. Any Suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:05:51+00:00Added an answer on June 12, 2026 at 2:05 pm

    You could update the PHP include path:

    set_include_path(get_include_path() . PATH_SEPARATOR . $pathToPearLibs);
    require_once($pathToPearLibs . 'XML/RPC2/Client.php');
    

    This will give PHP one more (correct) place to look after it attempts to load from the wrong place.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

trying to run this program. I think that to setup all of the web
While trying to run a string through PHP's htmlentities function, I have some cases
Trying to run a self-hosted app on my Win 7 system, with little success.
I am trying to get phpunit 3.5 working. But everytime i run my tests
I'm trying run a simple Java/MySQL web app tutorial in NetBeans. I am able
Trying to run Sprockets 2 in a Rails 2.3 app... After installing the gem
i am trying to run some testing on my framework with phpstorm. i am
I am trying to run /Applications/MAMP/bin/php/php5.4.3/bin/pear From Terminal on Mac OS X Lion. I
I'm trying run this procedure with generic parameters. If I can't delete because some
I'm trying to run the test scripts that come with JanRain's php openid libraries.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.