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 7583269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:38:14+00:00 2026-05-30T18:38:14+00:00

I have searched through the Internet for the answer, and still don’t get it.

  • 0

I have searched through the Internet for the answer, and still don’t get it.
The problem is that I can’t access the remote server’s OS. I can just file-transfer scripts or any files to there and run the scripts there.
So I don’t know how to run any install command in the remote OS.

Can I just install the extension package by downloading the package, unzip it, then put the API files in the httpdocs folder in server, then ‘include’ them in my scripts for use?

In some tutorials for web, they taught that, to check if PEAR is installed in server, we can run phpinfo() in php script, then check the configure command to see if it is –with-pear or –without-pear. But I just can’t see any of them in the configure command row!

they claim that beyond version 4.3 for PHP, PEAR has been installed for us. The version of mine is PHP Version 5.2.17. But I just got no method to check if it is really installed.

  • 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-05-30T18:38:15+00:00Added an answer on May 30, 2026 at 6:38 pm

    Many questions – let me try to answer each of them one by one.

    Find PEAR

    PEAR should be enabled by default – which would explain that you don’t see this in the configure-string.

    Another test is to check the value of include_path – /usr/local/pear, /usr/share/php these values (= the location of your PEAR install) depend on the OS. You can see this via phpinfo() or:

    <?php
    var_dump(ini_get('include_path'));
    // or
    var_dump(get_include_path());
    

    To finally check if PEAR is installed, try this code:

    <?php
    require_once 'PEAR.php';
    

    No error? This means that PEAR is installed and correctly configured (in your include_path).

    A local PEAR tree

    If PEAR is not installed or it is and you don’t have write access to the location (or your administrator cannot install PEAR packages for you), the best is the following:

    • install PEAR and all required packages on your local workstation
    • copy the entire pear tree from your workstation to the server
    • adjust the include_path in your script

    Adjusting the include_path

    1. Let’s say on the server your directory is: /var/example.org/public
    2. Upload your entire PEAR tree (from local) into: /var/example.org/public/pear
    3. Add the following to your script:

    It’s important that your new ‘path’ comes first – prepending means that it gets searched for libraries first. So for example, if your version of PEAR is more up to date than the one already on your server, it’ll use that. Less side-effects.

    PHP extensions

    In most cases you cannot install pecl extensions on a server without access. You could try to pre-compile the extension on in a virtual machine (with the same OS) and then upload the .so file and use dl() to load it at runtime, but this probably won’t work in most situations.

    Fin

    I hope that makes sense.

    Updated: include_path primer

    Imagine this piece of code:

    <?php
    require 'PEAR.php';
    

    This will make PHP search it’s include_path for the location of PEAR.php.

    A typical path looks like this:

    .:/usr/share/php
    

    This means the include_path contains two directories currently (: is the delimiter):

    • the current path: .
    • the path /usr/share/php

    Order of these paths is crucial to PHP:

    • if PEAR.php (from our example) is found in the current directory, it’s included first
    • if PEAR.php is only in /usr/share/php, PHP will still search the current directory first

    The include_path is usually set in your php.ini, or at runtime (when the script is executed) using set_include_path(...) or with ini_set('include_path', ...). To get the current value of the include path you can use get_include_path() or ini_get('include_path') as well.

    To avoid PHP searching the include_path, you could use the following:

    <?php
    require '/usr/share/php/PEAR.php'
    

    An absolute path stops PHP from using the include_path. But since the location of PEAR is not standardized across various linux distributions, Unix, MacOSX or Windows, it’s not recommended to do this.

    HTH

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

Sidebar

Related Questions

I have searched through internet & found that there are no any direct method
I have a problem which I cant seem to find answer to through searches
I have searched the internet for an answer to what could be causing EXCEPTION_ACCESS_VIOLATION
I have searched through the related mod_rewrite qustions but I can't anything specific enough
I have searched through the forum for my answer, But all the calendar questions
this might be the easiest problem to solve but I have searched through the
I don't understand. I have searched all internet forums but found nothing helpful. I
I have searched through many times but have not seen this before. Probably really
I have a simple form that searches through the 2000+ issues of a 3rd
I have searched around, and it seems that this is a limitation in MS

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.