Php Pear

PHP and PEAR::Mail - Setup Guide Important Points. PEAR is a PHP framework from The PHP Group that provides reusable PHP components or classes. PEAR::Mail is one of these classes and it provides advanced interfaces to PHP applications and programs for sending emails. The SMTP interface allows a PHP application to access an external SMTP server with control over various options such SMTP ports. PHP Version: PHP version 5.5.0 or older PHP Version: PHP 5.2.0 or newer PEAR Package: PEAR 1.4.0b1 or newer: Release 7.0.4: PHP Version: PHP 5.2.0 or newer PEAR Package: PEAR 1.4.0b1 or newer: Release 7.0.3: PHP Version: PHP 5.2.0 or newer PEAR Package: PEAR 1.4.0b1 or newer: Dependencies for older releases can be found on the release overview. Dependencies; Release 1.1.1: PHP Version: PHP 4.3.0 or newer PEAR Package: PEAR 1.4.0b1 or newer Release 1.1.0: PHP Version: PHP 4.3.0 or newer PEAR Package: PEAR 1.4.

(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8)

Pecl Install Specific Version

set_include_pathSets the include_path configuration option


set_include_path ( string$include_path ) : stringfalse

Sets the include_path configuration option for the duration of the script.



The new value for the include_path

Return Values

Returns the old include_path on success or false on failure.


Example #1 set_include_path() example

// Or using ini_set()
ini_set('include_path', '/usr/lib/pear');

Example #2 Adding to the include path

Making use of the PATH_SEPARATOR constant, it is possible to extend the include path regardless of the operating system.

In this example we add /usr/lib/pear to the end of the existing include_path.

= '/usr/lib/pear';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);

See Also

  • ini_set() - Sets the value of a configuration option
  • get_include_path() - Gets the current include_path configuration option
  • restore_include_path() - Restores the value of the include_path configuration option
  • include - include
parks at vecinc dot com
11 years ago
If you find that this function is failing for you, and you're not sure why, you may have set your php include path in your sites's conf file in Apache (this may be true of .htaccess as well)
So to get it to work, comment out any 'php_value include_path' type lines in your Apache conf file, and you should be able to set it now in your php code.
14 years ago
Can be useful to check the value of the constant PATH_SEPARATOR.
if ( ! defined( 'PATH_SEPARATOR' ) ) {
if (
strpos( $_ENV[ 'OS' ], 'Win' ) ! false )
define( 'PATH_SEPARATOR', ';' );
define( 'PATH_SEPARATOR', ':' );

For older versions of php, PATH_SEPARATOR is not defined.
If it is so, we must check what kind of OS is on the web-server and define PATH_SEPARATOR properly
df a t dougfelton d o t c o m
16 years ago
In order to use .htaccess files to set the include path, PHP must be installed as an Apache module. If PHP is compiled as a CGI binary, you can set the include path in a custom php.ini file (if, for example, you're being hosted somewhere and don't have access to the main php.ini file. Note that custom php.ini files don't affect subdirectories in the way that .htaccess files do, so you'll need to put your custom php.ini file in any subdirectories as well.
Pietje Puk

Php Pear Examples

Php Pear Packages

4 months ago

Php Pear Install

An empty string as the include path has no effect. Setting it to PATH_SEPARATOR has the same effect as '.'
Php pear supporttill at etill dot net
6 years ago
It appears that relative paths are allowed:
set_include_path( '..' . DIRECTORY_SEPARATOR . 'source');
require_once( 'Foo.class.php');
koenig at electronova dot net
14 years ago
You can also add several paths in one set_include_path separating them by ':'.
ex : set_include_path('/home/mysite/includes1:/home/mysite/includes2')
cloxy at cloxy dot com
9 years ago
If you want to include files with their absolute path without changing the current include path, you can use the magic constant __DIR__ . For example:
<?php include(__DIR__.'/file.php'); ?>

It is available since PHP 5.3.

Php Pear Db

  • PHP Options/Info Functions
  • Deprecated
Top Level :: Database :: oci8


Package Information
SummaryExtension for Oracle Database
Maintainers Christopher Jones < christopher dot jones at oracle dot com > (lead) [details]
Wez Furlong < wez at php dot net > (lead) [details]
Tianfang Yang < tianfang dot yang at oracle dot com > (lead) [details]
Antony Dovgal (lead) [wishlist] [details]
Andi Gutmans < andi at zend dot com > (lead) [details]
DescriptionThe OCI8 extension lets you access Oracle Database.
Use 'pecl install oci8' to install for PHP 8.
Use 'pecl install oci8-2.2.0' to install for PHP 7.
Use 'pecl install oci8-2.0.12' to install for PHP 5.2 - PHP 5.6.
Use 'pecl install oci8-1.4.10' to install for PHP 4.3.9 - PHP 5.1.
The OCI8 extension can be linked with Oracle client libraries from Oracle Database 10.2 or later. These libraries are found in your database installation, or in the free Oracle Instant Client from
Oracle's standard cross-version connectivity applies. For example, PHP OCI8 linked with Instant Client 19c can connect to Oracle Database 11.2 onward. See Oracle's note 'Oracle Client / Server Interoperability Support' (ID 207303.1) for details.

[ Latest Tarball ][ Changelog ] [ View Statistics ]
[ Browse Source ] [ Package Bugs ] [ View Documentation ]

Available Releases
VersionStateRelease DateDownloads
3.0.1stable2020-12-21oci8-3.0.1.tgz (186.4kB) DLL [ Changelog ]
3.0.0stable2020-11-27oci8-3.0.0.tgz (186.2kB) [ Changelog ]
2.2.0stable2018-12-10oci8-2.2.0.tgz (191.8kB) DLL [ Changelog ]
2.1.8stable2017-10-18oci8-2.1.8.tgz (189.6kB) DLL [ Changelog ]
2.1.7stable2017-08-15oci8-2.1.7.tgz (189.4kB) DLL [ Changelog ]
2.1.4stable2017-04-12oci8-2.1.4.tgz (187.5kB) DLL [ Changelog ]
2.1.3stable2016-11-11oci8-2.1.3.tgz (187.4kB) DLL [ Changelog ]
2.1.2stable2016-08-18oci8-2.1.2.tgz (187.3kB) DLL [ Changelog ]
2.0.12stable2016-08-18oci8-2.0.12.tgz (187.5kB) DLL [ Changelog ]
2.1.1stable2016-04-18oci8-2.1.1.tgz (187.9kB) DLL [ Changelog ]
2.0.11stable2016-04-18oci8-2.0.11.tgz (187.5kB) DLL [ Changelog ]
2.1.0stable2015-12-12oci8-2.1.0.tgz (186.7kB) DLL [ Changelog ]
2.0.10stable2015-12-12oci8-2.0.10.tgz (186.9kB) DLL [ Changelog ]
2.0.8stable2014-03-12oci8-2.0.8.tgz (186.4kB) DLL [ Changelog ]
2.0.7stable2014-02-10oci8-2.0.7.tgz (186.3kB) DLL [ Changelog ]
2.0.6stable2013-10-21oci8-2.0.6.tgz (185.2kB) DLL [ Changelog ]
2.0.5stable2013-10-20oci8-2.0.5.tgz (183.8kB) [ Changelog ]
2.0.4devel2013-09-27oci8-2.0.4.tgz (183.4kB) [ Changelog ]
2.0.3devel2013-09-27oci8-2.0.3.tgz (183.3kB) [ Changelog ]
2.0.2devel2013-09-06oci8-2.0.2.tgz (182.9kB) [ Changelog ]
2.0.1devel2013-09-03oci8-2.0.1.tgz (182.7kB) [ Changelog ]
2.0.0devel2013-07-24oci8-2.0.0.tgz (183.1kB) [ Changelog ]
1.4.10stable2013-07-08oci8-1.4.10.tgz (165.3kB) DLL [ Changelog ]
1.4.9stable2012-10-22oci8-1.4.9.tgz (165.3kB) [ Changelog ]
1.4.8stable2012-10-19oci8-1.4.8.tgz (165.2kB) [ Changelog ]
1.4.7stable2012-01-11oci8-1.4.7.tgz (164.6kB) [ Changelog ]
1.4.6stable2011-08-22oci8-1.4.6.tgz (163.3kB) [ Changelog ]
1.4.5stable2010-12-09oci8-1.4.5.tgz (150.7kB) [ Changelog ]
1.4.4stable2010-11-10oci8-1.4.4.tgz (149.8kB) [ Changelog ]
1.4.3stable2010-08-06oci8-1.4.3.tgz (149.9kB) [ Changelog ]
1.4.2stable2010-08-06oci8-1.4.2.tgz (149.9kB) [ Changelog ]
1.4.1stable2010-02-11oci8-1.4.1.tgz (145.6kB) [ Changelog ]
1.4.0alpha2009-10-06oci8-1.4.0.tgz (147.8kB) [ Changelog ]
1.3.5stable2009-03-16oci8-1.3.5.tgz (134.8kB) [ Changelog ]
1.3.4stable2008-07-27oci8-1.3.4.tgz (131.1kB) [ Changelog ]
1.3.3stable2008-06-19oci8-1.3.3.tgz (124.3kB) [ Changelog ]
1.2.5stable2008-05-13oci8-1.2.5.tgz (111.0kB) [ Changelog ]
1.3.2beta2008-04-17oci8-1.3.2.tgz (122.8kB) [ Changelog ]
1.3.1beta2008-02-19oci8-1.3.1.tgz (115.0kB) [ Changelog ]
1.3.0beta2007-10-05oci8-1.3.0.tgz (103.6kB) [ Changelog ]
1.2.4stable2007-08-31oci8-1.2.4.tgz (97.4kB) [ Changelog ]
1.2.3stable2007-01-25oci8-1.2.3.tgz (81.6kB) [ Changelog ]
1.2.2stable2006-08-24oci8-1.2.2.tgz (70.1kB) [ Changelog ]
1.2.1stable2006-05-02oci8-1.2.1.tgz (66.3kB) [ Changelog ]
1.2.0stable2006-03-16oci8-1.2.0.tgz (61.8kB) [ Changelog ]
1.1.1beta2005-09-22oci8-1.1.1.tgz (59.5kB) [ Changelog ]
1.1beta2005-09-07oci8-1.1.tgz (59.4kB) [ Changelog ]
1.0stable2003-12-15oci8-1.0.tgz (32.3kB) [ Changelog ]

Php Pear Download

Release 3.0.1:PHP Version: PHP 8.0.0 or newer
PEAR Package: PEAR 1.4.0b1 or newer
Release 3.0.0:PHP Version: PHP 7.0.0 or newer
PEAR Package: PEAR 1.4.0b1 or newer
Release 2.2.0:PHP Version: PHP 7.0.0 or newer
PEAR Package: PEAR 1.4.0b1 or newer
Dependencies for older releases can be found on the release overview page.