PEAR_Frontend_Web
[ class tree: PEAR_Frontend_Web ] [ index: PEAR_Frontend_Web ] [ all elements ]

Source for file example.php

Documentation is available at example.php

  1. <?php
  2. /**
  3.  * Installation of PEAR_Frontend_Web:
  4.  *
  5.  * 'pear install PEAR_Frontend_Web'
  6.  * Create a __secure__ directory accessable by your webserver
  7.  * put a file like this one in there.
  8.  * Create a directory for PEAR to be installed in and add it to
  9.  * the include path. (Yes. you can use your standard PEAR dir,
  10.  * but the Webserver needs writing access, so I think for this
  11.  * beta software a new directory is more safe)
  12.  * Specify a file for your PEAR config.
  13.  * Have fun ...
  14.  *
  15.  * by Christian Dickmann <dickmann@php.net>
  16.  */
  17. if (!getenv('PHP_PEAR_SYSCONF_DIR')) {
  18.     // Use this config instead of the global one
  19.     if (is_file(dirname(__FILE__. DIRECTORY_SEPARATOR . 'pear.conf')) {
  20.         putenv('PHP_PEAR_SYSCONF_DIR=' dirname(__FILE__));
  21.     }
  22. }
  23.  
  24. if ($env=getenv('PHP_PEAR_INSTALL_DIR')) {
  25.     define("PHP_PEAR_INSTALL_DIR",$env);
  26. else {
  27.     putenv('PHP_PEAR_INSTALL_DIR=@php_dir@');
  28. }
  29.  
  30. if ($env=getenv('PHP_PEAR_BIN_DIR')) {
  31.     define("PHP_PEAR_BIN_DIR",$env);
  32. else {
  33.     putenv('PHP_PEAR_BIN_DIR=@bin_dir@');
  34. }
  35. if ($env=getenv('PHP_PEAR_PHP_BIN')) {
  36.     define("PHP_PEAR_PHP_BIN",$env);
  37. else {
  38.     putenv('PHP_PEAR_PHP_BIN=@php_bin@');
  39. }
  40. $env=getenv('PHP_PEAR_INSTALL_DIR');
  41. require_once($env.'/PEAR.php');
  42. if (OS_WINDOWS{
  43.     $seperator ';';
  44. else {
  45.     $seperator ':';
  46. };
  47.  
  48. ini_set('include_path''@include_path@');
  49. $useDHTML         = true;
  50.  
  51. // Include WebInstaller
  52. require_once("PEAR/WebInstaller.php");
  53. ?>

Documentation generated on Mon, 11 Mar 2019 14:37:19 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.