Solved

include_path ?? Need an explaination.. (PHP)

Posted on 2007-03-19
7
212 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 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
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

634 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