SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: PEAR challenged

  1. #1
    SitePoint Addict
    Join Date
    Oct 2005
    Posts
    288
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Specifically, when in command mode on windows XP, how do I locate the directory I should be in to invoke the $ commands?

    (Embarrassed -- but I don't understand the PEAR posts here nor the manual at
    http://pear.php.net/manual/en/guide.users.concepts.php. )

    Let me be more specific: The documentation refers to a "pear command line application". And every command begins with a "$ pear".

    Where do I find this "pear command line application"?

    This has got to be basic stuff because ALL THE DOCUMENTATION assumes it's intuitive.

    Regards,

    Grnadpa
    Last edited by ScallioXTX; Jun 13, 2010 at 14:45. Reason: merged posts

  2. #2
    SitePoint Addict
    Join Date
    Oct 2005
    Posts
    288
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Again, this must be intuitive -- but there are no responses so I must not be asking my question correctly;

    In one of my PHP/PEAR books is this sentence:
    You can check [the configurable location] using the pear command line application:
    $ pear config-get php_dir
    Given that my PEAR directory is in C:\xampp\php\PEAR in my Windows XP directory and my php modules are in C:\xampp\htdocs\hrf ...
    Starting with the 'start' button, how I do I execute the above $ PEAR command?

    Regards,

    Grnadpa

  3. #3
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,683
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    If you don't have the pear location set in the default path, you would do:

    1. Start -> All Programs -> Accessories -> Command Prompt
    2. C:\Documents and Settings\Owner\> cd \xampp\php\PEAR
    3. C:\xampp\php\PEAR\> pear config-get php_dir


    If you do have pear in your default path, you don't need to perform step 2.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  4. #4
    SitePoint Addict
    Join Date
    Oct 2005
    Posts
    288
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thank you Paul,

    I do not have an "Owner" directory within "Documents and Settings". However, I assume the point is simply to get current on
    cd \xampp\php\PEAR
    .

    C:\xampp\php\PEAR\> pear config-get php_dir
    results in "pear is not recognized as an internal or external command, operable program or batch file"

    So I tried C:\xampp\php\PEAR\> $ pear config-get php_dir
    results in "$ is not recognized ..."

    So I tried C:\xampp\php\PEAR\> $pear config-get php_dir
    results in "$pear is not recognized ..."

    I gather that indicates I need to re-install PEAR?

    Regards,

    grnadpa Brian

  5. #5
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,683
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    No, it just indicates that that is not the location of the pear executable on your system.

    Apparantly there is a xampp file called xampp_shell.bat that starts a command prompt with the appropriate pear path already set.

    http://www.apachefriends.org/en/xampp-windows.html appears to have all of the details.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •