Re: Include problems

From: Date: Tue, 03 Sep 2002 22:53:23 +0000
Subject: Re: Include problems
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-111008@lists.php.net to get a copy of this message
does the "require" has something to be with "include" ? Cause instead of using "include" im always usin "require" Thanks, Flavio Bastos Amiel "Scott" <scott@spectorsweb.com> wrote in message news:20020803205305.33042.qmail@pb1.pair.com... > Does this mean i have to do this to each site??? > > > > > > "Daniel Kushner" <php@websapp.com> wrote in message > news:KHEIIHMNNIFIGCMGGFDJEEFNFNAA.php@websapp.com... > > include 'inc/test.inc' will work fine if you add your root directory to > your > > include_path (in the c:\winnt\php.ini file). > > > > > > Daniel Kushner > > daniel@websapp.com > > > > Need hosting? http://www.TheHostingCompany.us/ > > > > > -----Original Message----- > > > From: Scott [mailto:scott@spectorsweb.com] > > > Sent: Saturday, August 03, 2002 3:11 PM > > > To: php-general@lists.php.net > > > Subject: [PHP] Include problems > > > > > > > > > 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 > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > >

« previous php.general (#111008) next »