get_include_path

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

get_include_pathObtém a opção de configuração include_path atual

Descrição

get_include_path ( ) : string

Obtém o valor atual da opção de configuração include_path.

Valor Retornado

Retorna o caminho, como uma string.

Exemplos

Exemplo #1 Exemplo get_include_path()

<?php
// Funciona a partir do PHP 4.3.0
echo get_include_path();

// Funciona em todas as versões do PHP
echo ini_get('include_path');
?>

Veja Também

add a note add a note

User Contributed Notes 1 note

up
11
gtisza at gmail dot com
11 years ago
If you are trying to find a file on your include path, there is a better way: http://php.net/manual/en/function.stream-resolve-include-path.php
To Top