Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

include_path ?? Need an explaination.. (PHP)

Posted on 2007-03-19
7
Medium Priority
?
215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1000 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
ATEN's HDBaseT Presentation at InfoComm 2017

Hear ATEN Product Manager YT Liang review HDBaseT technology, highlighting ATEN’s latest solutions as they relate to real-world applications during her presentation at the HDBaseT booth at InfoComm 2017.

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

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

670 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