Stan
Stan

Reputation: 38255

PHP include path (Linux)

Say a php file has include_once("$CONF/blah.inc") in it. Where is this $CONF and the default location?

Upvotes: 0

Views: 1546

Answers (3)

John Percival Hackworth
John Percival Hackworth

Reputation: 11531

$CONF is a configuration variable set in an already sourced file. The search path is relative to at least one element from the include_path variable.

See http://www.php.net/manual/en/ini.core.php#ini.include-path for more details.

Upvotes: 2

hsz
hsz

Reputation: 152216

Search it..

grep -R CONF *

Upvotes: 2

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798606

$CONF looks like a normal PHP variable to me. Try poking around the the files you include earlier.

Upvotes: 1

Related Questions