Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem in php.ini

0 views
Skip to first unread message

Kevin Morenski

unread,
Mar 25, 2002, 12:30:44 AM3/25/02
to
Hello,

I guess I'm full of questions tonight. In php.ini (I only use Windows for
development purposes, I don't host off of it) I'm having a problem with the
include_path. I want to set the include_path to more than one path. Since
I'm using:
<?php
if ($sid) {
require $_GET['sid'].".inc.php";
}

else if ($id) {
require $_GET['id'].".inc.php";
}

else
include("inc/id/default.inc.php");
?>
I need to specify where those files are located. So I left that to my
lovely php.ini file. Sadly, I cannot use || to have more than one path.
Any help would be appreciated.

Kevin


Arjan van Bentem

unread,
Mar 25, 2002, 8:16:37 AM3/25/02
to
Kevin Morenski wrote:

> I want to set the include_path to more than one path.

..


> Sadly, I cannot use || to have more than one path.

How did you come up with this ||? It is not like something like

if( $name == "bill||john" )

would work like an OR either...

Use : (Unix) or ; (Windows) -- see http://php.net/configuration

a.

Lindsay Adams

unread,
Mar 25, 2002, 1:06:29 PM3/25/02
to
http://www.php.net/manual/en/configuration.php#ini.include-path

in unix, acceptable paths are separated by :
in Windows, by ;

so, your list of available include paths for windows should be
include_path =".;c:\php\include;c:\include\php;d:\some more include\";

On 3/25/02 5:16 AM, in article
3c9f2382$0$90039$e4fe...@dreader1.news.xs4all.nl, "Arjan van Bentem"

0 new messages