Solved

include_path ?? Need an explaination.. (PHP)

Posted on 2007-03-19
7
180 Views
Last Modified: 2010-04-20
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
0
Comment
Question by:whatisthesolution
  • 3
  • 2
  • 2
7 Comments
 
LVL 11

Expert Comment

by:AnthonyP9618
ID: 18753627
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
 
LVL 1

Author Comment

by:whatisthesolution
ID: 18753761
Hmm anoying -  the mysql extensions refuses to turn on....
0
 
LVL 8

Accepted Solution

by:
nedfine earned 250 total points
ID: 18754173
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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 1

Author Comment

by:whatisthesolution
ID: 18754625
So it's essential to set the path to get PHP to work properly?
0
 
LVL 8

Expert Comment

by:nedfine
ID: 18754705
I think ,If you dont set it up, you have  to specify paths in your include statements to make it work.
0
 
LVL 11

Assisted Solution

by:AnthonyP9618
AnthonyP9618 earned 250 total points
ID: 18755787
This is the only difference:

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

0
 
LVL 1

Author Comment

by:whatisthesolution
ID: 18764751
K..  thanks guys!
I'l make a split!

cheers!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Moving web servers into a DMZ? 3 49
Hovering effect 9 47
remove border from element 5 54
Windows and other UI names - The Proper names for the Various elements! 1 61
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now