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
> 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.
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"