PHP 8.3.4 Released!

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|false

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

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

Retorna o caminho, como uma string, ou false em caso de falha.

Exemplos

Exemplo #1 Exemplo de get_include_path()

<?php
echo get_include_path();

// Ou usando ini_get()
echo ini_get('include_path');
?>

Veja Também

add a note

User Contributed Notes 1 note

up
12
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