Re: Include problems

From: Date: Sat, 03 Aug 2002 19:14:46 +0000
Subject: Re: Include problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-110984@lists.php.net to get a copy of this message
try using the absolute path to the file e.g. include("C:/windows/webserver/httproot/inc/test.inc"); "Scott" <scott@spectorsweb.com> wrote in message news:20020803191330.60503.qmail@pb1.pair.com... > I have PHP4 on both a windows IIS server and a windows apache server. The > include function only works in the same directory of the file I wish to > access. > > ex. www.include.com/default.php > all files in same directory (i guess the root)? > <?php > include 'test.inc' > ?> > > everything works fine. Here's where I have the problem. > > Now I want to store all my includes in one directory www.include.com/inc > > <?php > include 'inc/test.inc' > ?> > that doesn't work>>> > Warning: Failed opening 'test.inc' for inclusion (include_path='') > > Can anyone help me with this??? > > Thanks > scott > > >

« previous php.general (#110984) next »