PHP.nl

set_include_path

set_include_path

Sets the include_path configuration option

 **set_include_path** string $include_path

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

include_path The new value for the include_path

Returns the old on successreturn.falseforfailure. include_path

Voorbeeld: example

<?php
set_include_path('/usr/lib/pear');

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

Voorbeeld: Adding to the include path

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


 In this example we add  to the end of
 the existing .
`include_path`
<?php
$path = '/usr/lib/pear';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
?>

ini_set``get_include_path``restore_include_path``include