include_path ?? Need an explaination.. (PHP)

In php ini - does the "include_path" nned to be set -i s it necessary and what is the propose of it?

Thanks in advance
LVL 1
whatisthesolutionAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AnthonyP9618Commented:
I'm not sure there are flags needed with the include_path.

In any case, this link gives 2 ways of doing... 1 through the CONF and the second at runtime in your PHP code.

http://www.modwest.com/help/kb5-98.html
0
whatisthesolutionAuthor Commented:
Hmm anoying -  the mysql extensions refuses to turn on....
0
nedfineCommented:
include_path:
Specifies a list of directories where the require(), include(), fopen(), file(), readfile() and file_get_contents() functions look for files. The format is like the system's PATH environment variable: a list of directories separated with a colon in Unix or semicolon in Windows.

Example H.1. Unix include_path
include_path=".:/php/includes"

Example H.2. Windows include_path
include_path=".;c:\php\includes"

Using a . in the include path allows for relative includes as it means the current directory.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

whatisthesolutionAuthor Commented:
So it's essential to set the path to get PHP to work properly?
0
nedfineCommented:
I think ,If you dont set it up, you have  to specify paths in your include statements to make it work.
0
AnthonyP9618Commented:
This is the only difference:

With: include("functions.php");
Without" include("..\..\functions.php")

0
whatisthesolutionAuthor Commented:
K..  thanks guys!
I'l make a split!

cheers!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.