Re: Really Annoying Require/Include Error

From: Date: Tue, 30 Mar 2004 17:50:53 +0000
Subject: Re: Really Annoying Require/Include Error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181841@lists.php.net to get a copy of this message
Mike R wrote:
I am getting this error: Fatal error: Failed opening required '/home/sites/site111/web/news/settings/newsletter.settings.inc.php' (include_path='') in /home/sites/site111/web/news/forms/sign_in_out_form.inc.php on line 7 From this piece of code: require ("/home/sites/site111/web/news/settings/newsletter.settings.inc.php");
Based on this path I'm assuming you use Linux? If that's the case you need to be sure that your webserver has permissions to execute that file. To test this, try chmod 777 and then execute the script... but later chmod to something more sane, maybe 755.
Before I totally lose my mind, can someone point out to me why I would be getting the error? The file is there, and named correctly. I had two other people in the office confirm the path and filename. :\ Thanks, -Mike


« previous php.general (#181841) next »