Re: Really Annoying Require/Include Error

From: Date: Tue, 30 Mar 2004 18:37:33 +0000
Subject: Re: Really Annoying Require/Include Error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181852@lists.php.net to get a copy of this message
On Tuesday 30 March 2004 12:33 pm, Mike R wrote: > I am getting this error: You came to the right place. > Fatal error: Failed opening required > '/home/sites/site111/web/news/settings/newsletter.settings.inc.php' > (include_path='') in include_path='' says that your php.ini does not have default include path set. > /home/sites/site111/web/news/forms/sign_in_out_form.inc.php on line 7 > This is the path and script name causing your problem. > > From this piece of code: > > require > ("/home/sites/site111/web/news/settings/newsletter.settings.inc.php"); This is a relative include. Your script is running in /home/sites/site111/web/news/forms/ so PHP is looking for your require file in this directory. /home/sites/site111/web/news/forms/home/sites/site111/web/news/forms/ I am guessing that this directory does not exist nor the file. Try this instead. require("../settings/newsletter.settings.inc.php"); James Hicks

« previous php.general (#181852) next »