12.4. CLI Environment
PEAR lets you include command-line scripts in a package. However, when doing so, you will quickly run into configuration problems like, “Which include_path should I use here” or “What is the full path of the PHP executable that should be used?” This information may be specified by users in a set of environment variables, as shown in Table 12.1.
Environment Variable | Corresponding Configuration Parameter |
---|---|
PHP_PEAR_SYSCONF_DIR | none |
PHP_PEAR_MASTER_SERVER | master_server |
PHP_PEAR_HTTP_PROXY | http_proxy |
PHP_PEAR_INSTALL_DIR | php_dir |
PHP_PEAR_EXTENSION_DIR | ext_dir |
PHP_PEAR_DOC_DIR | doc_dir |
PHP_PEAR_BIN_DIR | bin_dir |
PHP_PEAR_DATA_DIR | data_dir |
PHP_PEAR_TEST_DIR | test_dir |
PHP_PEAR_CACHE_DIR | cache_dir |
PHP_PEAR_PHP_BIN ... |
Get PHP 5 Power Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.