Akilsree1
Akilsree1

Reputation: 462

How to change include_path in php.ini file?

I tried in many ways, but I am failing to make changes.,

I want to change include_path like this:

include_path = "c:\path\to\my\folder\file"

but while trying to print the include path using get_include_path() Its printing like this:

'.;C:\php\pear'

Can anyone help me out? I tried set_include_path also but its not working for me.

Upvotes: 1

Views: 2382

Answers (1)

Rizier123
Rizier123

Reputation: 59701

If you want to change your include path in your php.ini file just search for include_path And you should find something like this:

; Windows: "\path1;\path2"
include_path=".;C:\xampp\php\PEAR"

Now you can change it here and restart the server and it should work!

Side Note:

I would recommend you to make a save copy before you change stuff in your php.ini file

For more information about include_path string see the manual: http://php.net/manual/en/ini.core.php#ini.include-path

Upvotes: 2

Related Questions