SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    eCommerce specialist hotnuts21's Avatar
    Join Date
    Apr 2002
    Location
    Aberystwyth, UK
    Posts
    1,355
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Which PEAR modules installed?

    Is there a function in PHP that lists all the installed PEAR modules?

    If im on a shared server how do I find out what modules are installed and available without having to speak to the host each time I find a new one

    On my own machine its fine, but I cant work out how to find them on a remote host.

    thnx
    Search & Rescue Aberystwyth Lifeboat
    CSS Tutorials/Guides

    Sitepoint signatures are not visible to Search Engines More info

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)

    PEAR packages

    Once you install the PEAR_Info package, you can use a file like this (windows has a different path seperator)
    PHP Code:
    <?php
    ini_set
    (
        
    'include_path'ini_get('include_path') . ":" .
            
    $_SERVER['DOCUMENT_ROOT'] . "/your_PEAR_package_folder/");

        require_once 
    'Info.php';

        
    $info = new PEAR_Info();

        
    $info->show();
    ?>


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
  •