Thanks Maxim, it is good to know! :) Flavio Bastos Amiel "Maxim Maletsky" <[EMAIL PROTECTED]> wrote in message 000401c23b48$55266960$1113fe17@dominanta">news:000401c23b48$55266960$1113fe17@dominanta... > Include and require are identical, except for their failure behavior - > require() halts permanently ending execution of the script. > > > Sincerely, > > Maxim Maletsky > > PHP Beginner > www.phpbeginner.com > > > > -----Original Message----- > > From: ::: Flavio Bastos Amiel::::::> [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, September 04, 2002 12:53 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP] Include problems > > > > does the "require" has something to be with "include" ? > > Cause instead of using "include" im always usin "require" > > > > > > Thanks, > > Flavio Bastos Amiel > > > > > > "Scott" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Does this mean i have to do this to each site??? > > > > > > > > > > > > > > > > > > "Daniel Kushner" <[EMAIL PROTECTED]> wrote in message > > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > 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 > > > > [EMAIL PROTECTED] > > > > > > > > Need hosting? http://www.TheHostingCompany.us/ > > > > > > > > > -----Original Message----- > > > > > From: Scott [mailto:[EMAIL PROTECTED]] > > > > > Sent: Saturday, August 03, 2002 3:11 PM > > > > > To: [EMAIL PROTECTED] > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php