ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  An Introduction to PEAR
Subject:   how can I tell if PEAR is installed?
Date:   2003-10-20 13:55:24
From:   anonymous2
Response to: how can I tell if PEAR is installed?

Assuming your machine has PEAR configured correctly and all is well the following should enlighten you as to if it is installed. Note though they may not have this package (PEAR_Info) installed... so you would prob get a fatal error... if your lucky provided by PEAR...if its installed :) - by the way when i checked this there was not docs for this package when i checked it (20th Oct 2003)... these are some of the main functions inside that class... along with


function setProxy($proxy)
function getPackages()
function getConfig()
function getCredits()
function pearImage() {
function show() {


<?php
// Include the appropriate PEAR classes
require_once("PEAR/Info.php");
$pearinfo = &new PEAR_Info();
$pearinfo->getPackages();
$pearinfo->getConfig();
$pearinfo->getCredits();
?>


1 to 2 of 2
1 to 2 of 2