| Article: |
An Introduction to PEAR | |
| Subject: | how can I tell if PEAR is installed? | |
| Date: | 2001-08-29 08:42:13 | |
| From: | ziatroyano | |
| My site is hosted by another provider. Is there a way I can tell if PEAR is installed on the server without having direct access to it? | ||
Showing messages 1 through 2 of 2.
-
how can I tell if PEAR is installed?
2007-03-18 09:15:56 ajay.kumar.singh [View]
-
how can I tell if PEAR is installed?
2003-10-20 13:55:24 anonymous2 [View]
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();
?>



$dsn = 'mysql://test_user:test_pw@localhost/test_db';
simpleQuery is not in use right now, to launch the query simply use $dbobj->query() passing a query string in query function using above dsn.
Regards,
ajay