Source for file example.php
Documentation is available at example.php
* Installation of PEAR_Frontend_Web:
* 'pear install PEAR_Frontend_Web'
* Create a __secure__ directory accessable by your webserver
* put a file like this one in there.
* Create a directory for PEAR to be installed in and add it to
* the include path. (Yes. you can use your standard PEAR dir,
* but the Webserver needs writing access, so I think for this
* beta software a new directory is more safe)
* Specify a file for your PEAR config.
* by Christian Dickmann <dickmann@php.net>
if (!getenv('PHP_PEAR_SYSCONF_DIR')) {
// Use this config instead of the global one
$pear_user_config = dirname(__FILE__ ) . DIRECTORY_SEPARATOR . 'pear.conf';
if ($env= getenv('PHP_PEAR_INSTALL_DIR')) {
define("PHP_PEAR_INSTALL_DIR",$env);
putenv('PHP_PEAR_INSTALL_DIR=@php_dir@');
if ($env= getenv('PHP_PEAR_BIN_DIR')) {
define("PHP_PEAR_BIN_DIR",$env);
putenv('PHP_PEAR_BIN_DIR=@bin_dir@');
if ($env= getenv('PHP_PEAR_PHP_BIN')) {
define("PHP_PEAR_PHP_BIN",$env);
putenv('PHP_PEAR_PHP_BIN=@php_bin@');
putenv('PHP_PEAR_SIG_BIN=""');
// Default for sig_keydir
putenv('PHP_PEAR_SIG_KEYDIR=""');
$env= getenv('PHP_PEAR_INSTALL_DIR');
require_once($env. '/PEAR.php');
ini_set('include_path', '@include_path@');
require_once("PEAR/WebInstaller.php");
Documentation generated on Mon, 11 Mar 2019 14:57:57 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|